EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  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  Index 1994  1995  1996  1997  <19981999  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 
<== Date ==> <== Thread ==>

Subject: Re: medm: leading zeros
From: [email protected] (Tim Mooney)
To: [email protected]
Cc: [email protected]
Date: Mon, 22 Jun 1998 11:14:51 -0500
re...

> > Is there a way to specify (in the record's PRECision field) to direct a medm
> > text monitor to fill the displayed VALue with leading zeros?  I want the
> > display to show '02',  not '2'.   In a printf statement the syntax would be
> > %02d.
> > 
> > -ps
> > 
> > 
> 
> No, not directly. If its REAL important you could write a simple device
> support routine for a stringin record that puts it into whatever format
> you want. The stringin record could fetch the value you want using the 
> .INP field.

You could also install the sCalcout record 
(http://www.aps.anl.gov/xfd/SoftDist/swBCDA/stringCalc.tar.gz)
use that printf statement in its calc field, and display the string result.

Tim Mooney

Navigate by Date:
Prev: Re: medm: leading zeros Ned Arnold
Next: Re: medm: leading zeros Chip WATSON
Index: 1994  1995  1996  1997  <19981999  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: medm: leading zeros Chip WATSON
Next: Base R3.13.0beta12 for WIN32 from ANL Bakul Banerjee
Index: 1994  1995  1996  1997  <19981999  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·