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  2015  2016  2017  <20182019  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  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: device support for bidirectional records
From: Mark Rivers <[email protected]>
To: "'Thomas, Patrick'" <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 24 Jan 2018 21:34:07 +0000

Hi Patrick,

 

The standard asyn device support for output records will do that if you set the info tag asyn:READBACK=1.  If you write an asyn driver then you can use this standard asyn device support, and not have to worry about how to do it.  If you are not using an asyn driver then you can use this code as an example (e.g. asyn/devEpics/devAsynInt32.c).

 

This support is documented here:

https://epics.anl.gov/modules/soft/asyn/R4-32/asynDriver.html

 

It says:

*******************************************

Callback updates for output records

Beginning in asyn R4-26 support was added for updating output records from driver interrupt callbacks. This feature allows output records to reflect changes in the underlying hardware that are caused by manual front-panel operation, changes caused by another output record, etc.

By default output records do not update when a driver does interrupt callbacks. However, if the following info tag is added for a record in the database file then callbacks will be enabled and the output record will be updated whenever the driver does a callback for that value.
info(asyn:READBACK, "1")
If the value of the info tag is 0 or if the info tag is not present then updates of output records on interrupt callbacks are disabled.

*******************************************

 

Cheers,

Mark

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Thomas, Patrick
Sent: Wednesday, January 24, 2018 3:09 PM
To: [email protected]
Subject: device support for bidirectional records

 

Hi,

 

I was wondering if there is a current recommended method for implementing device support for bidirectional records. That is, records that both write values that are obtained through EPICS to a device and also update their value to reflect the status of the device when it changes through means outside of EPICS.

 

On a related note, are there versions of the standard output records (bo, ao, longout, etc.) that have a separate readback field in engineering units?

 

Thank you for your time,

Patrick


References:
device support for bidirectional records Thomas, Patrick

Navigate by Date:
Prev: device support for bidirectional records Thomas, Patrick
Next: Re: device support for bidirectional records Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: device support for bidirectional records Thomas, Patrick
Next: Re: device support for bidirectional records Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 24 Jan 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·