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  <20212022  2023  2024  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: How to get the Time format (H:M:S) in scalcout?
From: Tasaddaq Khan via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Thu, 22 Apr 2021 12:14:40 +0500
Hi

I am using the following code to get the timestamp on change.

record(bi, "pv1"){
 field (INP, "pv1")
 field (ONAM, "1")
 field (ZNAM, "0")
}

record(stringin, "pvtime1"){
 field (DTYP, "Soft TimeStamp")
 field (TSEL, "time-sel.TIME CP")
 field (INP, "@%H:%M:%S")
}

record (scalcout, "time-sel"){
 field (INAA, "pvtime1 CP")
 field (INPA, "pv1 CP")
 field (CALC, "A==1?AA:0")
}

record (calcout, "change"){
 field (INPA, "pv1 CP")
 field (INPB, "pvtime1 CP")
 field (CALC, "A==1?B:0")
}

In time-sel.AA field, I am getting the time in the format specified in pvtime1 (H:M:S). When the condition is true I only get the hours not the minutes and seconds.  But when the condition is false i got the zero value that is ok  I got the same behaviour for the record change. Please guide how to get the time format (H:M:S) in the time-sel record when the condition is true.

Regards

Tasaddaq

Navigate by Date:
Prev: Save the date: Spring 2021 EPICS Collaboration Meeting, June 1- June 4 Mike Bree via Tech-talk
Next: Re: RPM packages for EPICS Ralph Lange 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Save the date: Spring 2021 EPICS Collaboration Meeting, June 1- June 4 Mike Bree via Tech-talk
Next: pvdata structure not writing to other pvs Pierrick M Hanlet 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  <20212022  2023  2024 
ANJ, 23 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·