Hi Julio,
"Boolean Button" has a "Data Type" property. If it is "Bit", it will write double value 0/1 to the PV. If it is "Enum", it will write the On/Off State string value to PV.
Thanks,
Xihui
> -----Original Message-----
> From: Julio Calvo [mailto:[email protected]]
> Sent: Wednesday, November 16, 2011 9:14 AM
> To: Mark Rivers; [email protected]
> Subject: Re: Illegal Choice PV
>
> I am not really sure, but I think you are right. Anyway, I have changed
> the solution and I am using something similar as Read_Status with a
> boolean button that call a PV when push and call a different one when
> release. Inside the driver it gives true to a boolean when push and it
> gives false to the same bool when release. I think it works.
>
>
> Thank you.
>
>
> Julio.
>
>
>
> ________________________________
> De: Mark Rivers <[email protected]>
> Para: Julio Calvo <[email protected]>; [email protected]
> Enviado: miércoles 16 de noviembre de 2011 14:49
> Asunto: RE: Illegal Choice PV
>
> I have not used CSS. However, I suspect that the problem is a
> confusion between the string value of the PV and the integer value. bo
> records have both an integer value (0 or 1) and a string value defined
> by the ZNAM and ONAM fields, which might be "Off" and "On". You can
> send either a number or a string. But if you send a string it must
> match either the ZNAM or ONAM fields. Perhaps you are sending 1 as a
> string, rather than as a number?
>
> Mark
>
>
> ________________________________
>
> From: [email protected] on behalf of Julio Calvo
> Sent: Wed 11/16/2011 7:02 AM
> To: [email protected]
> Subject: Illegal Choice PV
>
>
> Hi there,
>
> I am trying to give value = 1 to a PV (bo) using a boolean button on
> CSS. When I push the button the action should be write 1 to a PV, but
> in the Windows IOC it appears the message: "Illegal Choice PV : 'pv
> name' 1". Why?.
>
> I am using AsynPortDriver to use a variable that matchs with the pv. So,
> I want to use the value of the variable to block / unblock writing
> parameters in a LLRF register. If user push the boolean, then I send a
> 1 to a PV and then I write a C++ loop that if the variable is 1 then
> block parameters.
>
>
> Am I explaining correctly?.
>
>
> Thank you for your help.
>
>
> Julio
>
>
>
>
>
> Julio.
- References:
- Illegal Choice PV Julio Calvo
- RE: Illegal Choice PV Mark Rivers
- Re: Illegal Choice PV Julio Calvo
- Navigate by Date:
- Prev:
Re: Illegal Choice PV Julio Calvo
- Next:
mcaR6-12-2 build error Zhou, Jingchen
- 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: Illegal Choice PV Julio Calvo
- Next:
mcaR6-12-2 build error Zhou, Jingchen
- 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
|