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  2013  2014  <20152016  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  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: asyn R4.26
From: Mark Rivers <[email protected]>
To: "'Zenon Szalata'" <[email protected]>, "[email protected]" <[email protected]>
Date: Sat, 28 Feb 2015 00:54:40 +0000
I think STAT and SEVR only get set when the record processes.

When are you doing the callback to device support, before or after iocInit?

If you do the callback after iocInit then the callback will cause the record to process, because it calls scanOnce().  However, if you call it before iocInit it will not call scanOnce() because that will crash the IOC.

Are you using the asynPortDriver C++ base class?  If so that takes care of the problem for you because it has a thread that waits for interruptAccept to be true, and then does all of the callbacks to device support. 

Mark


-----Original Message-----
From: Zenon Szalata [mailto:[email protected]] 
Sent: Friday, February 27, 2015 5:59 PM
To: Mark Rivers; [email protected]
Subject: asyn R4.26

Hi Mark,
I am beginning to use asyn R4.26, where the new feature that you have 
added to allow initialization of output records, is of interest.
It works well, except I have noticed one thing.
In my case I am initializing a longout record from the device driver.  
It gets the value correctly, UDF is set to 0 but STAT has UDF and SEVR 
is INVALID.  Do I need to do something else in addition to just push a 
new value to the record?  I don't want to process the record, which most 
likely would put the record in a good state.
Sorry for bugging you and thanks,
Zen


Replies:
Re: asyn R4.26 Zenon Szalata
References:
asyn R4.26 Zenon Szalata

Navigate by Date:
Prev: asyn R4.26 Zenon Szalata
Next: LinuxRT remote reboot from EPICS Luchini, Kristi L.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: asyn R4.26 Zenon Szalata
Next: Re: asyn R4.26 Zenon Szalata
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·