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  <20082009  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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: IOC to use time from its own processor
From: Andrew Johnson <[email protected]>
To: Dehong Zhang <[email protected]>
Cc: [email protected]
Date: Thu, 6 Nov 2008 14:03:35 -0600
On Thursday 06 November 2008 13:51:26 Dehong Zhang wrote:
>
> Thanks much.  Now I get a lot of:
> ... recGblGetTimeStamp failed
>
> It seems the recGblGetTimeStamp method is trying to check
> the timestamp event, which we don't have.

Ah, I forgot that recGblGetTimeStamp() uses the getEvent() routine with an 
event number of 0 to get record timestamps.  On R3.14.8 you need to provide 
and register getEvent() routine as well (instead of the NULL second argument 
to iocClockRegister()).  The code should look like this:

int clockGetEvent (epicsTimeStamp *pDest, int event)
{
    if (event == epicsTimeEventCurrentTime) {
        return clockGetCurrent (pDest);
    }
    return -1;
}

- Andrew
-- 
Talk is cheap. Show me the code. -- Linus Torvalds

Replies:
Re: IOC to use time from its own processor Dehong Zhang
References:
IOC to use time from its own processor Dehong Zhang
Re: IOC to use time from its own processor Andrew Johnson
Re: IOC to use time from its own processor Dehong Zhang

Navigate by Date:
Prev: Re: IOC to use time from its own processor Dehong Zhang
Next: Re: IOC to use time from its own processor Dehong Zhang
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: IOC to use time from its own processor Dehong Zhang
Next: Re: IOC to use time from its own processor Dehong Zhang
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·