Experimental Physics and Industrial Control System
Thanks a lot. I see how to do this now.
Zen
-----Original Message-----
From: Dalesio, Leo [mailto:[email protected]]
Sent: Sunday, January 04, 2009 1:01 PM
To: Szalata, Zenon M.; EPICS Techtalk
Subject: RE: EDM Horizontal Bar
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
- References:
- EDM Horizontal Bar Szalata, Zenon M.
- RE: EDM Horizontal Bar Dalesio, Leo
- Navigate by Date:
- Prev:
RE: EDM Horizontal Bar Dalesio, Leo
- Next:
Re: RE: Timezone setting with R3.14.10 Dehong Zhang
- 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: EDM Horizontal Bar Dalesio, Leo
- Next:
Re: How to implement simple control algorithm (one more question) Andrew Johnson
- 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