EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

From: Vikram Bhagat <[email protected]>
To: "[email protected]" <[email protected]>
Date: Fri, 8 Mar 2013 07:54:31 -0800 (PST)
Dear All,
    i am using Asyn driver and mbboDirect record type for my application 

record (mbboDirect,"SET-MBBO")
{
        field(DESC, "New Variable")
        field(DTYP, "asynUInt32Digital")
        field(OUT, "@asynMask(ni6528_0, 3,7) writembbo")
  }
Where i have used "writembbo" as reason for device support driver.

i am not setting any other fields 

I am not even setting B0 to B15 as want the user can set any value dynamically means user can set any bit 1 or 0 for any bit.  
 
So first time after IOC restart..... the first value writes 0 (zero) irrespective of the value I am setting then after it is normal.
 
So why it is only first time then after it is working fine.... whatever value I set it write that value only.
 
--> if i set  field(SEVR, "NO_ALARM")
then it works fine at first time after IOC restart.

So in record process routine
static long process(mbboDirectRecord *prec)      in record support module
 prec->sevr becomes INVALID_ALARM  and val field will fill with B0...B15 and first time value become zero as i am not setting any value for B0..B15


Due to this record support module write zero in driver and i am not able to set first time user define value at runtime.

How i can come out of this

with regards


Replies:
RE: Mark Rivers
mbboDirect record questions Mark Rivers

Navigate by Date:
Prev: RE: MEDM won't compile in Cygwin: "Too many open files" Poff, Mark A
Next: RE: Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Labview as Server and Probe as client, connection problem. kathryn.baker
Next: RE: Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·