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