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
<2020>
2021
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
<2020>
2021
2022
2023
2024
|