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: PVManager ReadOnly Check
From: "Carcassi, Gabriele" <[email protected]>
To: <[email protected]>, <[email protected]>
Date: Thu, 20 Oct 2011 11:33:20 -0400
Hi Marcus,

>Something like PV.isWriteAllowed() from org.csstudio.utility.pv would
be nice.
Right: I have been meditating to add it, but it's not as easy as it
looks.

The PV represents (in general) an expression. So, for example, you are
going to write a map that writes 5 channels in the appropriate order.
What should isWriteAllowed() return, if only one is actually readonly?

I haven't found a way for it to be well defined/obvious/intuitive for
complex expression (which is the whole point of PVManager). Could give a
map for all the channels, and whether they are write allowed. Or maybe I
should just give you a channel object, so you may get more
information... Don't have a clear idea yet...

Gabriele

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Thursday, October 20, 2011 7:49 AM
To: [email protected]
Subject: PVManager ReadOnly Check


Hi,


I have a setup of CSS, PVManager and a custom plugin. In the custom
plugin is a jface table viewer containing information based on process
variables.
Depending on whether that PV is writable I would like to offer
EditingSupport in certain cells.

Is there another way to check if a PV is writable/readonly in advance
instead of registering a PVWriterListener and catching a
WriteFailedException after trying to write to a readonly variable ?

Something like PV.isWriteAllowed() from org.csstudio.utility.pv would be
nice.


Thanks,
Marcus



References:
PVManager ReadOnly Check marcus . michalsky

Navigate by Date:
Prev: RE: EPICS support for Granville Phillips Series 307 Vacuum Gauge Controller Linda.Pratt
Next: RE: PVManager ReadOnly Check Carcassi, Gabriele
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: PVManager ReadOnly Check marcus . michalsky
Next: RE: PVManager ReadOnly Check Carcassi, Gabriele
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 ·