1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 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 2013 2014 2015 2016 2017 <2018> 2019 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. ******************************************* Cheers, Mark From: [email protected] [mailto:[email protected]]
On Behalf Of Thomas, Patrick 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 |