Generation working and Compilation of MARTe components
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!--
|
||||
BOY Files Navigation
|
||||
CODAC-VERSION: 6.1.2
|
||||
WARNING: This is an SDD generated file. Contact codac-support for any query.
|
||||
-->
|
||||
|
||||
|
||||
|
||||
<CBS name="GCPS" description="ITER-EC-GN-P01-GBF-GCPS" enabled="true" opi_file="./mimics/ITER-EC-GN-P01-GBF-GCPS_Mimic.opi OPI_FILE=/EC-GN/boy/ITER LEVEL=ITER-EC-GN-P01-GBF-GCPS" deprecated="false" alarm_root="/CODAC_AlarmHandler/EC/EC-GN/EC-GN-P01/EC-GN-P01-GBF/EC-GN-P01-GBF-GCPS" xmlns:xi="http://www.w3.org/2001/XInclude" >
|
||||
|
||||
|
||||
|
||||
</CBS>
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
TOP=..
|
||||
|
||||
include $(TOP)/configure/CONFIG
|
||||
|
||||
TARGETS = $(CONFIG_TARGETS)
|
||||
CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
|
||||
|
||||
include $(TOP)/configure/RULES
|
||||
@@ -0,0 +1,27 @@
|
||||
from org.csstudio.opibuilder.scriptUtil import PVUtil
|
||||
from org.csstudio.opibuilder.scriptUtil import ColorFontUtil
|
||||
|
||||
|
||||
table = widget.getTable()
|
||||
nbColPVs = 3
|
||||
#find index of the trigger PV
|
||||
i = 0
|
||||
while triggerPV != pvs[i]:
|
||||
i += 1
|
||||
|
||||
|
||||
table.setCellText(i / nbColPVs, i % nbColPVs + 3, PVUtil.getString(triggerPV))
|
||||
|
||||
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
|
||||
|
||||
table.setCellBackground(i / nbColPVs, i % nbColPVs + 3, color)
|
||||
Reference in New Issue
Block a user