I have a device which returns a value and a string indicating the units of the value. I’ll get inputs like 0.3nA or 3.4mA, etc. Since I want to report the value in a consistent unit, I want to convert the unit string to a scale factor (nA=1, uA=1000, mA=10000) and then use a calc record to scale the value. CALC records seem to only take numbers as input and I don’t see any other appropriate record type.
In programming I would use a case statement or if-elseif constructs. How do I do this with EPICS record processing?
Randall
LBNL
- Replies:
- RE: changing unit string to scale factor Mark Rivers via Tech-talk
- Re: changing unit string to scale factor Zimoch Dirk (PSI) via Tech-talk
- Navigate by Date:
- Prev:
Altering timestamp of softIOC PV Reimer, Paul E. via Tech-talk
- Next:
Re: Channel connection performance Michael Davidsaver 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: Altering timestamp of softIOC PV Johnson, Andrew N. via Tech-talk
- Next:
RE: changing unit string to scale factor 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
|