Ned Arnold wrote:
> > 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.
>
> Ned
There was a discussion at the SOSH 98 workshop at SLS resulting
in an agreement to standardize on a thing called "format" which
would be the same as a printf string for a single number. The context
was in device oriented API's, where access is to a named device with
a named property (deviceName + property == channel). Properties
then have "characteristics" like units, resolution, etc., and one of these
characteristics would be "format".
I don't yet know how we'll put this into CDEV and how we would then
map it to EPICS, but one possibility would be a new string field or
special method in the IOC. An alternate approach (for CDEV) would be
to keep this information in a host resident database (transparent to
applications such as MEDM running on CDEV). This second approach
has already been demonstrated with CDEV by a group at CERN (and
perhaps also at BNL, I can't remember).
Chip
- References:
- Re: medm: leading zeros Ned Arnold
- Navigate by Date:
- Prev:
Re: medm: leading zeros Tim Mooney
- Next:
Base R3.13.0beta12 for WIN32 from ANL Bakul Banerjee
- 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: medm: leading zeros Ned Arnold
- Next:
Re: medm: leading zeros Tim Mooney
- 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
|