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

Subject: Re: phoebus LED in boolean button
From: Pierrick M Hanlet via Tech-talk <tech-talk at aps.anl.gov>
To: "Hu, Yong" <yhu at bnl.gov>, "Manoussakis, Adamandios" <manoussakis1 at llnl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 6 Apr 2021 21:05:49 +0000
Many thanks Yong,
This is what I was searching; it turns out that my error is using pvInt0 instead of pv0.
Best wishes,
Pierrick


On 4/6/21 3:23 PM, Hu, Yong wrote:

Hi Pierrick,

 

For a Boolean Button in CS-Studio, there are default colors for “Off Color” and “On Color”. To change default color of “Off Color” to red, I use the Rule as shown in the attached screenshot: LN-DG{SCR:1}Pos-I  is a readback PV (mbbi in my case); when its value is 2, the Off Color of the setpoint PV “LN-DG{FRC:1}In-Cmd” (a bo record, a Boolean Button) is changed to red. Of course, we can use a similar rule to change the color of “On Color”. Search “Rule” in CS-Studio Help Contents (See attached another screenshot).

 

I have not tested my case in Phoebus yet.

 

HTH,

Yong

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Reply-To: Pierrick M Hanlet <hanlet at fnal.gov>
Date: Tuesday, April 6, 2021 at 2:29 PM
To: "Manoussakis, Adamandios" <manoussakis1 at llnl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Subject: Re: phoebus LED in boolean button

 

Hi Adam,
My apologies if I'm not being clear.  The LED in the boolean button follows the setting (bo) record.
I'd still like the button to set the bo record; however, I'd like the read record (in my case a bi) to
control the color of the LED in the boolean button.  I suspected that this could be done with a
rule, since the rules allow for the input of additional PVs for controlling the appearance of the
button.
Thanks again,
Pierrick

On 4/6/21 11:50 AM, Manoussakis, Adamandios wrote:

Hi Pierrick,

 

If you just want the Boolean Button(Top on the picture, its one of the options in the phoebus designer under controls), you can just place your BO record in the PV name.  This will control your BO value as well as show its state in the led.

 

Adam

 

From: Pierrick M Hanlet <hanlet at fnal.gov>
Sent: Tuesday, April 6, 2021 7:05 AM
To: Manoussakis, Adamandios <manoussakis1 at llnl.gov>
Cc: tech-talk at aps.anl.gov
Subject: Re: phoebus LED in boolean button

 

Thank you Adamandios,
Presently, I'm doing exactly as you suggest, which is to have a separate LED connected to the read (bi) record and
the button controlled by the bo record.  But what I'd prefer is to dispose of the 2nd LED and simply use the LED in
the boolean button to indicate the read record's value.
Cheers,
Pierrick

On 4/5/21 7:29 PM, Manoussakis, Adamandios wrote:

Hi Pierrick,

 

If I understand correctly you should be able to have a Boolean button in CSS and place the PV name of the BO record in the PV name property.  When you run your GUI the button press will cause the BO to change state Off/On (0/1) in your record.  The Boolean Button in CSS actually has an LED in it but you could just have an LED in CSS that has the BO record PV name as well.  This would mimic whatever the Boolean button is set to, similar to what I have below (top is Boolean button, bottom is led) both set to loc://button (this would be your pv name in the pv property for each).  If you plan to have your button write out to a device and then your bi will read from the device then just change pv property for led to that bi record name.

 

 

-----Original Message-----

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Pierrick M Hanlet via Tech-talk

Sent: Friday, April 2, 2021 6:42 PM

To: tech-talk at aps.anl.gov

Subject: phoebus LED in boolean button

 

Good evening,

I'd like to use the boolean button to turn off/on a device with on bo record, e.g. setOffOn and change the LED color based on another bi record; e.g. readOffOn.  I assumed that I could create a rule for this, but nothing I'm doing is working. How does one normally do this?

Many thanks,

Pierrick

 

--

Pierrick Hanlet

Fermi National Accelerator

Accelerator Front End Controls

+1-630-840-5555 -- lab

+1-312-687-4980 -- mobile

 

"Whether you think you can or think you can't, you're right" -- Henry Ford

 




-- 
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile
 
"Whether you think you can or think you can't, you're right" -- Henry Ford



-- 
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile
 
"Whether you think you can or think you can't, you're right" -- Henry Ford

-- 
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile

"Whether you think you can or think you can't, you're right" -- Henry Ford

Replies:
Re: phoebus LED in boolean button Hu, Yong via Tech-talk
References:
phoebus LED in boolean button Pierrick M Hanlet via Tech-talk
RE: phoebus LED in boolean button Manoussakis, Adamandios via Tech-talk
Re: phoebus LED in boolean button Pierrick M Hanlet via Tech-talk
RE: phoebus LED in boolean button Manoussakis, Adamandios via Tech-talk
Re: phoebus LED in boolean button Pierrick M Hanlet via Tech-talk

Navigate by Date:
Prev: Re: MDEL Field Alfio Rizzo via Tech-talk
Next: Re: MDEL Field Michael Davidsaver via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: RE: phoebus LED in boolean button Manoussakis, Adamandios via Tech-talk
Next: Re: phoebus LED in boolean button Hu, Yong via Tech-talk
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  <20212022  2023  2024 
ANJ, 07 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·