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  <20092010  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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: EDM Horizontal Bar
From: "Dalesio, Leo" <[email protected]>
To: "Szalata, Zenon M." <[email protected]>, "EPICS Techtalk" <[email protected]>
Date: Sun, 4 Jan 2009 16:00:44 -0500
Channel access does not send the metadata any time but the connect time.

AO -> downcoutner.val

      downcounter = downcounter - 1;  ; this counts down seconds. Display this number for seconds in the middle as it counts down.
      barCalc = AO-downcounter        ; as downcounter goes from set value to 0 - this goes from 0 to set value
                  *(100/ao)           ; this scales the set value to 100%
                                      ; make HOPR and LOPR be 100 and 0. Display this as the bar.
                                      ; Use constant 0 as the 0 label. Display the AO for setting the value as full range.

I think this works.
Bob


-----Original Message-----
From: [email protected] on behalf of Szalata, Zenon M.
Sent: Sun 1/4/2009 3:34 PM
To: EPICS Techtalk
Subject: EDM Horizontal Bar
 
I am trying to implement a "progress indicator", which consists of a few epics records and two edm widgets.  On the EDM side I have a text control, which is used to set a number of seconds that will be counted down to 0 and which is stored in a longout record.  Another widget is a horizontal bar which shows progress by displaying number of seconds that have elapsed so far.  The horizontal bar connects to a calc record which counts seconds elapsed.  When the longout record, which stores the number of seconds, is processed it also causes the HOPR field in the calc record to be set to the number of seconds.  If the horizontal bar widget connects to the calc record after the number of seconds are set, all works well.  However, if a new value of seconds is entered, new value of HOPR is set and horizontal bar no longer works correctly, since it is still using the old value of HOPR for scaling.

Is there a way to force the horizontal bar to get new PV parameters without switching the edm screen from execute to edit to execute?

Thanks in advance,
Zen





Replies:
RE: EDM Horizontal Bar Szalata, Zenon M.
References:
EDM Horizontal Bar Szalata, Zenon M.

Navigate by Date:
Prev: EDM Horizontal Bar Szalata, Zenon M.
Next: RE: EDM Horizontal Bar Szalata, Zenon M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: EDM Horizontal Bar Szalata, Zenon M.
Next: RE: EDM Horizontal Bar Szalata, Zenon M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·