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

Subject: Re: Help understanding DTYP Soft Timestamp
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: Marco Filho <marco.filho at ess.eu>, Ralph Lange <ralph.lange at gmx.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 21 Oct 2024 15:33:28 +0000

The record conversion uses your OS's strftime() routine for everything except the "%f" format conversion. You may need to use %09f for that fractional part though to get the right output — I haven’t checked but I suspect %f will convert a fraction of 1 nanosecond as the string "1" whereas after the decimal point you would need "000000001".

 

- Andrew

 

 

On 10/21/24, 11:11AM, "Tech-talk" <tech-talk-bounces at aps.anl.gov> wrote:

 

Thanks all for the answers.
I expected something about the formatting, In the example record:

field(INP,  "@%s.%f")

seems to do the work fine but I tried playing with it and didn't get very far. Even though it seems similar to c format strings It doesn't seem to have the same meaning.
Anyway, it works the way it's intended to.

Cheers,

Marco


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
Sent: 19 October 2024 17:10:19
To: EPICS Tech Talk
Subject: Re: Help understanding DTYP Soft Timestamp

 

On Fri, 18 Oct 2024 at 21:08, J. Lewis Muir via Tech-talk <tech-talk at aps.anl.gov> wrote:

[...]  

I would expect to find information about the DTYP="Soft Timestamp" device
support here, or if not here, at least a link to information about it here.
[...]
I think it would be good for the reference manual
to be consistent in where it documents fields for each record.

 

Happy to review your pull requests.

~Ralph

 


References:
Help understanding DTYP Soft Timestamp Marco Filho via Tech-talk
Re: Help understanding DTYP Soft Timestamp Johnson, Andrew N. via Tech-talk
Re: Help understanding DTYP Soft Timestamp J. Lewis Muir via Tech-talk
Re: Help understanding DTYP Soft Timestamp Ralph Lange via Tech-talk
Re: Help understanding DTYP Soft Timestamp Marco Filho via Tech-talk

Navigate by Date:
Prev: Re: Help understanding DTYP Soft Timestamp Marco Filho via Tech-talk
Next: Job Opening BESSY-II EPICS and Bluesky Smith, William via Tech-talk
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  <20242025 
Navigate by Thread:
Prev: Re: Help understanding DTYP Soft Timestamp Marco Filho via Tech-talk
Next: adding ffmpegServer plugin to IOC John Dobbins via Tech-talk
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  <20242025 
ANJ, 22 Oct 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·