Experimental Physics and
| |||||||||||||||
|
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.
| ||||||||||||||
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |