EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: edm: Displaying numeric information
From: Tim Mooney <[email protected]>
To: David Dudley <[email protected]>
Cc: [email protected]
Date: Wed, 18 Apr 2007 10:18:33 -0500


David Dudley wrote:
Is there a way to have edm display numeric information as 'leading zero'
fields?

For instance, I want to display a time from my PLC.
The PLC has a variable that is hours, one that is minutes, and one that
is seconds.milliseconds.
I want to display '00:00:00.000' instead of ' 0: 0: 0.0  '.

I don't know about formatting numbers with EDM. If no solution pops up, you could make a string out of the numbers with a couple of sCalcout records, and get EDM to display that.

scalc1.INPA = <hours PV name>
scalc1.INPB = <minutes PV name>
scalc1.CALC = '$P(%02d:",a)+$P(%02d:",b)'
scalc1.OUT = "scalc2.AA PP"
scalc2.INPA = <seconds PV name>
scalc2.CALC = 'aa+$P("%06.3f",a)'

--
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls & Data Acquisition Group
Advanced Photon Source, Argonne National Lab.

References:
edm: Displaying numeric information David Dudley

Navigate by Date:
Prev: edm: Displaying numeric information David Dudley
Next: channel access security deadlock from asInit() Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: edm: Displaying numeric information David Dudley
Next: Re: edm: Displaying numeric information John Sinclair
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·