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,29 @@
importClass(Packages.org.csstudio.opibuilder.scriptUtil.DataUtil);
importClass(Packages.org.csstudio.opibuilder.scriptUtil.PVUtil);
importClass(Packages.org.csstudio.opibuilder.scriptUtil.ScriptUtil);
var table = widget.getTable();
var fct_name=widget.getPropertyValue("name");
var selectionListener = new Packages.org.csstudio.swt.widgets.natives.SpreadSheetTable.ITableSelectionChangedListener() {
selectionChanged: function(selection) {
var selectedrow= table.getSelection();
var cuName=selectedrow[0][0];
var phyName=selectedrow[0][1];
var macroInput = DataUtil.createMacrosInput(true);
macroInput.put("CU", cuName);
macroInput.put("PHY_NAME", phyName);
macroInput.put("FCT_NAME", fct_name);
// open OPI
// see https://svnpub.iter.org/codac/iter/codac/dev/units/m-css-boy/trunk/org.csstudio.opibuilder/src/org/csstudio/opibuilder/scriptUtil/ScriptUtil.java
if (cuName.indexOf("P") == 0) {
ScriptUtil.openOPI(widget, fct_name + "-" + cuName + "-PLCDetails.opi", 1, macroInput);
}
else {
ScriptUtil.openOPI(widget, fct_name+"-CubiclePLCDetails.opi", 0, macroInput);
}
}
};
table.addSelectionChangedListener(selectionListener);

View File

@@ -0,0 +1,2 @@
#RULES_DIRS
include $(CONFIG)/RULES_DIRS

View File

@@ -0,0 +1,15 @@
#include "sdd-dan.h"
#include <log.h>
#include "stdlib.h"
int declareDANStruct(dan_Source ds ){
int result=0;
int Cnt=0;
if(ds==NULL){
log_error("Invalid call to declareDANStruct, dan source not initialized \n ");
return -1;
}
return 0;
}