Hi Kay,
Thank you very much for your advice. It worked like a charm!
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
Dana 13.12.2021 15:08, Kasemir, Kay je napisao(la):
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
- References:
- CSS Toggle button advice Donny Domagoj Cosic via Tech-talk
- Re: [EXTERNAL] CSS Toggle button advice Kasemir, Kay via Tech-talk
- Navigate by Date:
- Prev:
Re: Log4Shell approaches Jörn Dreyer via Tech-talk
- Next:
Photonic Science X-ray FDS camera Sintschuk, Michael 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
<2021>
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: [EXTERNAL] CSS Toggle button advice Kasemir, Kay via Tech-talk
- Next:
Log4Shell approaches Shankar, Murali 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
<2021>
2022
2023
2024
|