The toggle button interfaces to a boolean PV, which is basically an
enum PV with two states.
Create an mbbo record on the IOC, either add it to your existing IOC,
or to a new soft IOC, which has two states and uses 000000 for the
zero value, 111111 for the one value.
-Kay
-------------------------
FROM: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Donny
Domagoj Cosic via Tech-talk <tech-talk at aps.anl.gov>
SENT: Monday, December 13, 2021 9:03 AM
TO: Tech-talk <tech-talk at aps.anl.gov>
SUBJECT: [EXTERNAL] CSS Toggle button advice
Hello,
I would like to create a toggle button that sends 111111 when pressed
and 000000 when depressed to a PV that in turned sends a command to a
device using StreamDevice. I am not sure how to do this because the
only
toggle type widget available in CSS is a boolean button which can
send 1
or 0. Could I do this using a padding in the device proto file, but
how
to make the padding depended on the input?
Any advice how this can be achieved would be greatly appreciated.
Regards,
--
Donny Domagoj Cosic
Laboratory for Ion Beam Interactions
Ruđer Bošković Institute
Bijenička cesta 54 | HR-10 000 Zagreb | CROATIA
T: +385 1 4561 041 | @: dcosic at irb.hr | www.irb.hr