Generation working and Compilation of MARTe components
This commit is contained in:
@@ -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)
|
||||
@@ -0,0 +1,17 @@
|
||||
########################################
|
||||
# Program-specific environment variables
|
||||
########################################
|
||||
|
||||
# INFO - This file is part of the I&C project. It can be modified without risk of being overwritten.
|
||||
# INFO - This file is sourced when invoking 'mvn run -Dprog=<prog_name>' to allow for setting development-specific environment variables.
|
||||
|
||||
# Override SDN interface name for test purposes
|
||||
# Default: lo
|
||||
# Project: Target host <iface_name> in SDD database
|
||||
#SDN_INTERFACE_NAME=lo
|
||||
|
||||
# INFO - This file can be further extended with anything specific required by the program.
|
||||
|
||||
#LOG_FILE_ENABLE=false
|
||||
#LOG_FILTER_LEVEL=info
|
||||
#LOG_FWD_MODE=asyn
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user