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  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 
<== Date ==> <== Thread ==>

Subject: RE: Illegal Choice PV
From: "Mark Rivers" <rivers@cars.uchicago.edu>
To: "Julio Calvo" <julitocal_24@yahoo.es>, <Tech-talk@aps.anl.gov>
Date: Wed, 16 Nov 2011 07:49:32 -0600
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: tech-talk-bounces@aps.anl.gov on behalf of Julio Calvo
Sent: Wed 11/16/2011 7:02 AM
To: Tech-talk@aps.anl.gov
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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020 
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 ·