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: Dehong Zhang <[email protected]>
To: Andrew Johnson <[email protected]>
Cc: [email protected]
Date: Thu, 06 Nov 2008 14:08:05 -0600
Hi Andrew,

Sorry to bother you so much!

Since i don't have an event, shall I remove the "if" statement?

Thanks much and best regards,
Dehong




----- Original Message -----
From: Andrew Johnson <[email protected]>
Date: Thursday, November 6, 2008 2:04 pm
Subject: Re: IOC to use time from its own processor
To: Dehong Zhang <[email protected]>
Cc: [email protected]


> 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 Andrew Johnson
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
Re: IOC to use time from its own processor Andrew Johnson

Navigate by Date:
Prev: Re: IOC to use time from its own processor Andrew Johnson
Next: Re: IOC to use time from its own processor Andrew Johnson
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 Andrew Johnson
Next: Re: IOC to use time from its own processor Andrew Johnson
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 ·