I can use TSEL to get the time stamp from another record. Example:
>cat abc.db
record(ao, "MY:PV") {
field(TSEL, "ANOTHER:PV.TIME")
}
record(ao, "ANOTHER:PV") {
}
>caget -d 15 MY:PV ANOTHER:PV
MY:PV
Native data type: DBF_DOUBLE
Request type: DBR_TIME_SHORT
Element count: 1
Value: 0
Timestamp: <undefined>
Status: UDF
Severity: INVALID
ANOTHER:PV
Native data type: DBF_DOUBLE
Request type: DBR_TIME_SHORT
Element count: 1
Value: 0
Timestamp: <undefined>
Status: UDF
Severity: INVALID
>caput ANOTHER:PV.PROC 1
Old : ANOTHER:PV.PROC 0
New : ANOTHER:PV.PROC 1
>caget -d 15 MY:PV ANOTHER:PV
MY:PV
Native data type: DBF_DOUBLE
Request type: DBR_TIME_SHORT
Element count: 1
Value: 0
Timestamp: <undefined>
Status: UDF
Severity: INVALID
ANOTHER:PV
Native data type: DBF_DOUBLE
Request type: DBR_TIME_SHORT
Element count: 1
Value: 0
Timestamp: 2013-09-11 06:47:57.611329
Status: NO_ALARM
Severity: NO_ALARM
>caput MY:PV.PROC 1
Old : MY:PV.PROC 0
New : MY:PV.PROC 1
>caget -d 15 MY:PV ANOTHER:PV
MY:PV
Native data type: DBF_DOUBLE
Request type: DBR_TIME_SHORT
Element count: 1
Value: 0
Timestamp: 2013-09-11 06:47:57.611329
Status: NO_ALARM
Severity: NO_ALARM
ANOTHER:PV
Native data type: DBF_DOUBLE
Request type: DBR_TIME_SHORT
Element count: 1
Value: 0
Timestamp: 2013-09-11 06:47:57.611329
Status: NO_ALARM
Severity: NO_ALARM
Note that MY:PV and ANOTHER:PV have identical time stamps.
>caget MY:PV.TSEL
MY:PV.TSEL ANOTHER:PV.VAL NPP NMS
>
Q: Why does the output of caget list ANOTHER:PV.VAL when I set it to ANOTHER:PV.TIME?
I'm using EPICS 3-14-12 and my IOC runus on 32-bit RHEL5.
- Replies:
- Re: TSEL question Ralph Lange
- Navigate by Date:
- Prev:
EtherCAT and NI slave chassis [SEC=UNCLASSIFIED] LYNCH, Damien
- Next:
Re: TSEL question Ralph Lange
- 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
- Navigate by Thread:
- Prev:
RE: EtherCAT and NI slave chassis [SEC=UNCLASSIFIED] LYNCH, Damien
- Next:
Re: TSEL question Ralph Lange
- 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
|