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  2011  2012  2013  2014  2015  2016  <2017 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
<== Date ==> <== Thread ==>

Subject: help - writing a table column from OPI BOY to PV
From: Tomasz Brys <Tomasz.Brys@esss.se>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 5 Jul 2017 14:14:02 +0000
Hi,
I need help.
I have an OPI BOY. I created a table Nx3, (Nrows, 3 columns), N can be from 1 to 200.
User can modify the table and when is ready press the button to write the whole column of the table to PV 
The PV is type of aao , size 200. Of course, the table can have less than 200 elements.
What would be the easiest way to do this?
I tried something like that, create an Action Button and as an action I execute such a script:

from org.csstudio.opibuilder.scriptUtil import PVUtil
from array import array

tab = display.getWidget("Table")

row = tab.getTable().getRowCount()
for i in range(1, row):
   PVUtil.writePV("$(PREFIX):ListVolt", i)  # - this works but write always one element [0]
   print i                                                          

My question:
How I can write one column of a table to PV which is type of aao?
Is it possible to write the whole column at once? Or I have to do it element by element?
Any help will be appreciated.

Regards
--
Tomasz Brys
Integrated Control System
European Spallation Source - ERIC




Replies:
Re: help - writing a table column from OPI BOY to PV Michael Davidsaver

Navigate by Date:
Prev: RE: CSS Text entry values not updating on PV change Iain Marcuson
Next: Re: help - writing a table column from OPI BOY to PV Michael Davidsaver
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
Navigate by Thread:
Prev: RE: CSS Text entry values not updating on PV change Iain Marcuson
Next: Re: help - writing a table column from OPI BOY to PV Michael Davidsaver
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
ANJ, 05 Jul 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·