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,55 @@
importClass(Packages.org.csstudio.opibuilder.scriptUtil.PVUtil);
importClass(Packages.org.csstudio.opibuilder.scriptUtil.ColorFontUtil);
var table = widget.getTable();
//Fill PV Name only once
if (widget.getVar("firstTime") == null)
{
widget.setVar("firstTime", true);
for (var i=0;pv=pvs[i];i++) {
// earlier when by default pv.getName() was giving name with 'epics://' prefix. Ripping it off before showing was done below
table.setCellText(i, 0, pv.getName().trim())
if (!pv.isConnected()) {
table.setCellText(i, 1, "Disconnected");
}
}
// Based on value of macro SHOW_PLC_IOC, enable visibility of PLCIOCDetailsTable
if (widget.getPropertyValue("name") == 'PLCIOCDetailsTable') {
if (display.getMacroValue("SHOW_PLC_IOC") == "true") {
widget.setPropertyValue("visible", "true");
display.getWidget("PLCIOCDetailsLabel").setPropertyValue("visible", "true");
}
}
}
//find index of the trigger PV
var i=0;
while (triggerPV != pvs[i]) {
i+=1;
}
table.setCellText(i, 1, PVUtil.getString(triggerPV).trim());
table.setCellText(i, 2, PVUtil.getStatus(triggerPV).trim());
table.setCellText(i, 3, PVUtil.getSeverityString(triggerPV).trim());
var s = PVUtil.getSeverity(triggerPV);
var color = ColorFontUtil.WHITE
color = ColorFontUtil.WHITE;
if( s == 0) {
color = ColorFontUtil.GREEN;
}
else if( s == 1) {
color = ColorFontUtil.RED;
}
else if( s == 2) {
color = ColorFontUtil.YELLOW;
}
else if( s == 3) {
color = ColorFontUtil.PINK;
}
table.setCellBackground(i, 3, color);

View File

@@ -0,0 +1,27 @@
#############################################################
#
# Copyright 2015 F4E | European Joint Undertaking for ITER
# and the Development of Fusion Energy ('Fusion for Energy')
#
# Licensed under the EUPL, Version 1.1 or - as soon they
# will be approved by the European Commission - subsequent
# versions of the EUPL (the "Licence");
# You may not use this work except in compliance with the
# Licence.
# You may obtain a copy of the Licence at:
#
# http://ec.europa.eu/idabc/eupl
#
# Unless required by applicable law or agreed to in
# writing, software distributed under the Licence is
# distributed on an "AS IS" basis,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
# express or implied.
# See the Licence for the specific language governing
# permissions and limitations under the Licence.
#
# $Id: Makefile.inc 3 2012-01-15 16:26:07Z aneto $
#
#############################################################
make -f Makefile.gcc

View File

@@ -0,0 +1,8 @@
############################################################################
## Sequence programs to load
############################################################################
## Start any sequence programs
#seq sncxxx,"user=codac-devHost"
#- End-of-file marker - do not delete or add lines below!