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.
- Replies:
- Re: Illegal Choice PV Julio Calvo
- References:
- Illegal Choice PV Julio Calvo
- Navigate by Date:
- Prev:
Illegal Choice PV Julio Calvo
- Next:
Re: Illegal Choice PV Julio Calvo
- 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:
Illegal Choice PV Julio Calvo
- Next:
Re: Illegal Choice PV Julio Calvo
- 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
|