EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  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  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: CSS Meter display and Progress Bar
From: "Chen, Xihui" <[email protected]>
To: David Dudley <[email protected]>, EPICS tech-talk <[email protected]>
Date: Mon, 03 Jan 2011 14:24:57 -0500
Title: CSS Meter display and Progress Bar

Hi David,

 

>2 questions for a CSS pro somewhere....

  1. How do I set the precision displayed in a CSS meter?  The meter seems determined to display a reading to 2 digits precision, but I’d like to be able to display more accuracy than that.

You are right. Currently, there is no way to change the digits precision even if you selected “limits from PV” (it only read max, min, LoLo, Lo, Hi, HiHi from PV). Actually, it has the same format as its scale. In next release, I would like to add a “Numeric Format” property to every widget with scale, such as Meter, Gauge, Progress Bar, Tank, XY Graph and so on. This property will give user the ability to set the format of the scale, hence the value label. For example, “#.####” means 4 digits precision if there are digits. See here for more details: http://download.oracle.com/javase/1.5.0/docs/api/java/text/DecimalFormat.html


> 2. Is it possible to display a progress bar from right to left?  I have 2 valve positions I want to indicate, and they are inverse of each other.  I would like to display them as bars where one grows from left to right, and the other grows from right to left.

The only way to do this is reversing your pv value and hiding the scale and label (putting a text update widget on the bar instead). That is, using a rule or script to change the widget’s pv_value property to “max – pvValue”.  See attached example. However, there is no way to reverse the scale so far. It is possible but needs lots of work. I would like to add the possibility if more people ask for it.

 

Happy New Year!

Xihui

Attachment: ReversedDisplay.opi
Description: ReversedDisplay.opi


References:
CSS Meter display and Progress Bar David Dudley

Navigate by Date:
Prev: Re: CSS Meter display and Progress Bar Ralph Lange
Next: RE: Adding readback zeroing to an asyn analog input Angus Gratton
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: CSS Meter display and Progress Bar Ralph Lange
Next: RE: Adding readback zeroing to an asyn analog input Angus Gratton
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·