Imported CSS files
This commit is contained in:
23
epics/css/sys-mng-opi/CSS/scripts/DisplayPVValuesInTable.py
Executable file
23
epics/css/sys-mng-opi/CSS/scripts/DisplayPVValuesInTable.py
Executable file
@@ -0,0 +1,23 @@
|
||||
from org.csstudio.opibuilder.scriptUtil import PVUtil
|
||||
from org.csstudio.opibuilder.scriptUtil import ColorFontUtil
|
||||
|
||||
|
||||
table = widget.getTable()
|
||||
|
||||
#Fill PV Name only once
|
||||
if widget.getVar("firstTime") == None:
|
||||
widget.setVar("firstTime", True)
|
||||
i=0
|
||||
for pv in pvs:
|
||||
table.setCellText(i, 0, pv.getName())
|
||||
if not pv.isConnected():
|
||||
table.setCellText(i, 1, "Disconnected")
|
||||
i+=1
|
||||
|
||||
#find index of the trigger PV
|
||||
i=0
|
||||
while triggerPV != pvs[i]:
|
||||
i+=1
|
||||
|
||||
table.setCellText(i, 1, PVUtil.getString(triggerPV))
|
||||
table.setCellText(i, 2, PVUtil.getTimeString(triggerPV))
|
||||
Reference in New Issue
Block a user