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  <20162017  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: PV with TSE=-2 and SCAN=I/O Intr returns <undefined> time.
From: Enrique Bernal <[email protected]>
To: Mark Rivers <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 2 Mar 2016 10:29:44 +0100
Hi Mark,
Yes, I am using asynManager calls. I was not calling updateTimeStamp and getTimeStamp. Troubles solved.
Thanks for the help!
Enrique Berrnal.

El 29/02/2016 a las 15:57, Mark Rivers escribió:
Hi Enrique,

Is your driver written using asynPortDriver or using native asynManager calls?

If you are using asynPortDriver then is your driver calling asynPortDriver::updateTimeStamp each time you want to update the timestamp?

If you are using native asynManager calls then is your driver calling pasynManager->updateTimeStamp and pasynManager->getTimeStamp each time you want to update and set the timestamp?

You can find examples of using it in the following asyn files:
asyn/testErrrorsApp/src/testErrors.cpp
testAsynPortDriverApp/src/testAsynPortDriver.cpp

There are also examples in all of the areaDetector drivers, for example:

areaDetector/ADExample/exampleApp/simDetectorSrc/simDetector.cpp:

Mark

________________________________
From: [email protected] [[email protected]] on behalf of Enrique Bernal [[email protected]]
Sent: Monday, February 29, 2016 8:27 AM
To: [email protected]
Subject: PV with TSE=-2 and SCAN=I/O Intr returns <undefined> time.

Dear all,
I am working with asynR4-27 on a Linux machine. I have followed the Support for EPICS Time Stamps in asyn (<http://www.aps.anl.gov/epics/modules/soft/asyn/R4-27/AsynTimeStampSupport.pdf>http://www.aps.anl.gov/epics/modules/soft/asyn/R4-27/AsynTimeStampSupport.pdf) but I am still having some troubles.
When I camonitor a PV with TSE=-2 and SCAN=I/O Intr the time obtained is <undefined>, but if I camonitor the same PV with TSE=0 and I/O Intr everything is ok.
I have registered myTimeStampSource with: asynRegisterTimeStampSource(const char *portName, const char *functionName). This is correct, it does not show any error at IOC initialization.
I have coded myTimeStampSource with some printf which are never printed, so maybe it is never being called.
I have registered this function with: epicsRegisterFunction(myTimeStampSource) and added in dbd file, the line: function(“myTimeStampSource”)
Any advice would be highly appreciated.
Thanks in advance.
Enrique Bernal.


References:
PV with TSE=-2 and SCAN=I/O Intr returns <undefined> time. Enrique Bernal
RE: PV with TSE=-2 and SCAN=I/O Intr returns <undefined> time. Mark Rivers

Navigate by Date:
Prev: Re: Raspberrypi GPIO access through EPICS Florian Feldbauer
Next: generic CSS version Florian Feldbauer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: PV with TSE=-2 and SCAN=I/O Intr returns <undefined> time. Mark Rivers
Next: read value from ai record to Device support ishita bhatia
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·