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 ==>

Subject: asyn support for EPICS timestamps and records with TSE=epicsTimeEventDeviceTime
From: Mark Rivers <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 11 Sep 2013 20:46:28 +0000

Folks,

 

There have been several requests to support EPICS timestamps in asyn port drivers and standard asyn device support. This would be used by records that have the TSE=epicsTimeEventDeviceTime=-2. The record support then directly uses the TIME field in the record as the timestamp. Device support must have properly set the TIME field in the record.

 

Setting the timestamp when the driver processes, rather than later on when the record processes can be desirable because the timestamp then reflects more accurately the actual time that the I/O operation was performed. It is also desirable to allow for a user-defined function to provide the timestamp, rather than being restricted to simply calling epicsTimeGetCurrent(). For example, the driver may be associated with a particular EPICS event, and the user-defined function would then call epicsTimeGetEvent() with that event ID. This can also return a site-specific time format. For example at LCLS epicsTimeGetEvent(eventId) returns a timestamp from the EVR system where the low-order bits encode the pulse ID. They want drivers to read that timestamp as soon as possible after the I/O is complete.

 

I have recently implemented support for these features in asynManager and asynPortDriver.  The attached document describes what I have done.  It also describes what I plan to do in the future to use this new asyn support in areaDetector.

 

I would appreciate any comments and suggestions before releasing this in the next version of asyn.

 

Cheers,

Mark

 

Attachment: AsynTimeStampSupport.pdf
Description: AsynTimeStampSupport.pdf


Navigate by Date:
Prev: RE: Multiple patterns/ .sub files for the same .db file Emmanuel Mayssat
Next: BiRa Ethernet Power Supply Controllers Rod Nussbaumer
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: TSEL question Andrew Johnson
Next: RE: asyn support for EPICS timestamps and records with TSE=epicsTimeEventDeviceTime 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 ·