Generation working and Compilation of MARTe components

This commit is contained in:
ferrog
2025-05-13 16:03:11 +00:00
parent 3a5e378d99
commit 4faee3802a
1571 changed files with 611466 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
from org.csstudio.opibuilder.scriptUtil import PVUtil
from org.csstudio.opibuilder.scriptUtil import ColorFontUtil
table = widget.getTable()
nbColPVs=2
#find index of the trigger PV
i=0
while triggerPV != pvs[i]:
i+=1
s = PVUtil.getSeverity(triggerPV)
color = ColorFontUtil.WHITE
if s == 0:
color = ColorFontUtil.GREEN
elif s == 1:
color = ColorFontUtil.RED
elif s == 2:
color = ColorFontUtil.YELLOW
elif s == 3:
color = ColorFontUtil.PINK
elif s == 4:
color = ColorFontUtil.GREEN
# table.setCellBackground(i/nbColPVs, i%nbColPVs + 3, color)
if "-CUBHLTS" in triggerPV.getName():
table.setCellText(i/nbColPVs, 3, PVUtil.getString(triggerPV))
table.setCellBackground(i/nbColPVs, 3, color)
if "-PLCHLTS" in triggerPV.getName():
table.setCellText(i/nbColPVs, 4, PVUtil.getString(triggerPV))
table.setCellBackground(i/nbColPVs, 4, color)