Subject: |
RE: [Q] How to set a timestamp in a device support routine. |
From: |
"David H. Thompson" <[email protected]> |
To: |
[email protected] |
Date: |
Tue, 25 Jun 2002 09:26:33 -0400 |
Marty:
Carl and I believe that you meant that the tse values that protect the
record's time stamp from being set by the time system should be:
epicsTimeEventDeviceTime (via device support) and
epicsTimeEventLinkPropagate(for flinks).
I take it now that there are three reserved values that this means that new
device support routines that could set the time stamp would have to check
for tse==epicsTimeEventDeviceTime before setting the time stamp.
>
>
> Dont forget that recGblGetTimeStamp will have to be changed to
>
>
>
>void epicsShareAPI recGblGetTimeStamp(void* prec)
> {
> struct dbCommon* pr = (struct dbCommon*)prec;
> int status = 0;
>
> if(pr->tsel.type!=CONSTANT)
> dbGetLink(&(pr->tsel), DBR_SHORT,&(pr->tse),0,0);
> if (pr->tse!=epicsTimeEventBestTime &&
> pr->tse!=epicsTimeEventDeviceTime )
> status = epicsTimeGetEvent(&pr->time,(unsigned)pr->tse);
> if(status) errlogPrintf("%s recGblGetTimeStamp failed\n",pr->name);
> }
>
>
> Unless I hear objections I will make these changes to 3.13 and 3.14.
>
> Marty
>
- References:
- Re: [Q] How to set a timestamp in a device support routine. Marty Kraimer
- Navigate by Date:
- Prev:
Re: [Q] How to set a timestamp in a device support routine. Marty Kraimer
- Next:
Diff between Torando 2.1 and 2.2 Luchini, Kristi
- 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: [Q] How to set a timestamp in a device support routine. Marty Kraimer
- Next:
[Report] EPICS R3.13.6 build on RH Linux7.3 Noboru Yamamoto
- 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
|