EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Illegal Choice PV
From: Julio Calvo <[email protected]>
To: Mark Rivers <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 16 Nov 2011 14:14:21 +0000 (GMT)
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.




Replies:
RE: Illegal Choice PV Chen, Xihui
References:
Illegal Choice PV Julio Calvo
RE: Illegal Choice PV Mark Rivers

Navigate by Date:
Prev: RE: Illegal Choice PV Mark Rivers
Next: RE: Illegal Choice PV Chen, Xihui
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Illegal Choice PV Mark Rivers
Next: RE: Illegal Choice PV Chen, Xihui
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·