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: TSEL question |
From: | Ralph Lange <[email protected]> |
To: | EPICS Tech-Talk <[email protected]> |
Date: | Wed, 11 Sep 2013 16:30:54 +0200 |
On 11.09.2013 16:11, Ralph Lange wrote:
On 11.09.2013 16:08, Ralph Lange wrote:On 11.09.2013 15:55, Zelazny, Michael Stanley wrote:Q: Why does the output of caget list ANOTHER:PV.VAL when I set it to ANOTHER:PV.TIME?Because the .TIME field is not accessible by Channel Access. The timestamp can only be obtained by using a DBR type that includes the timestamp on any valid CA-accessible field of a record.And this is what the record does. It sets up a link to the VAL field, but uses the time stamp it gets.
Using your example: > softIoc -d abc.db Starting iocInit ############################################################################ ## EPICS R3.14.12.3-6 $Date: Mon 2012-12-17 14:11:47 -0600$ ## EPICS Base built May 22 2013 ############################################################################ iocRun: All initialization complete epics> dbgf MY:PV.TSEL DBR_STRING: "ANOTHER:PV.VAL NPP NMS"I.e., the link in the database is set up pointing to the VAL field, the db library hard-codes the time field in recGblGetTimeStamp().
Cheers, ~Ralph