mrfioc2  2.3.0
evg-seq-save.py
Go to the documentation of this file.
1 from org.csstudio.opibuilder.scriptUtil import PVUtil, ConsoleUtil
2 from jarray import array
3 
4 Timestamp_SP = pvs[0]
5 EvtCode_SP = pvs[1]
6 
7 T, E = [], []
8 for row in widget.getTable().getContent():
9  T.append(float(row[0]))
10  E.append(float(row[1]))
11 
12 Timestamp_SP.setValue(array(T, 'd'))
13 EvtCode_SP.setValue(array(E, 'd'))