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

Subject: Update a record at a specific time
From: Donny Domagoj Cosic via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Wed, 03 Jun 2020 13:45:32 +0200
Hello,

For archiving purposes I am trying to record a value from a PV everyday at a specific time. I accomplished similar things using a Soft Timestamp record when a specific date/time field updates. ie:

record(stringin, "TeslaMeters:$(position):TimeStamp"){
    field(DTYP, "Soft Timestamp")
    field(PINI, "YES")
    field(INP,  "@%d")
}

record(calcout, "TeslaMeters:$(position):Calc"){
   field(INPA, "TeslaMeters:$(position):TimeStamp CP")
   field(INPB, "TeslaMeters:$(position)")
   field(CALC, "B")
   field(OUT, "TeslaMeters:$(position):Midnight PP")
}

record(ai, "TeslaMeters:$(position):Midnight")
{
    field(PREC, "3")
    field(EGU,  "Tesla")
    field(PINI, "YES")
}


Could I use a similar strategy to compare a time string generated by the Soft Timestamp? I see that there is a scalcout record, but i was not able to get it to work. Additionally, a simple follow up question that I am not able to solve in a simple way. Is there a simple way to create a "if" statement without the "else" part. As in, I would like the OUT record processed only then the "if" condition is met.

Thank you,
Donny

--
Donny Domagoj Cosic
 Institut Ruđer Bošković, Bijenička cesta 54, 10000 Zagreb, Croatia

Replies:
Re: Update a record at a specific time Mark Rivers via Tech-talk

Navigate by Date:
Prev: prosilicaSupport for arm Pierrick M Hanlet via Tech-talk
Next: Re: Update a record at a specific time Mark Rivers 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: prosilicaSupport for arm Michael Davidsaver via Tech-talk
Next: Re: Update a record at a specific time Mark Rivers 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  <20202021  2022  2023  2024 
ANJ, 08 Jun 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·