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 | 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 |
<== 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 |
Hi David, >2 questions for a CSS pro somewhere....
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
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