EP CalcOff no Msg

Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
This commit is contained in:
2024-12-05 12:56:51 +00:00
parent 33a9ec9bef
commit 86ac19ff83
6 changed files with 329 additions and 136 deletions

View File

@@ -168,12 +168,14 @@
param1 = Online
}
}
/*
+CalcOffSetsMsg = {
Class = "Message"
Destination = "MdsLoopApp.Functions.GAMElectricProbes"
Function = "CalcOffSets"
Mode = "ExpectsReply"
}
*/
+StopCurrentStateExecutionMsg = {
Class = Message
Destination = MdsLoopApp
@@ -243,20 +245,6 @@
}
}
}
+Types = {
Class = ReferenceContainer
+LangmuirStructure = {
Class = IntrospectionStructure
TimeSdas = {
Type = uint32
NumberOfElements = 1
}
SignalArray = {
Type = float32
NumberOfElements = 4
}
}
}
$MdsLoopApp = {
Class = RealTimeApplication
+Functions = {
@@ -306,50 +294,39 @@ $MdsLoopApp = {
+GAMFileReader = {
Class = IOGAM
InputSignals = {
Inputs = {
TimeSdas = {
DataSource = FileReader_DS
Type = LangmuirStructure
MemberAliases = {
Inputs.TimeSdas = TimeSdas
Inputs.SignalArray = LangmuirSignals
}
}
Type = uint32
}
Trigger = {
DataSource = FileReader_DS
Type = uint32
}
LangmuirSignals = {
DataSource = FileReader_DS
Type = float32
}
}
OutputSignals = {
LangmuirStrt = {
DataSource = DDB1
Type = LangmuirStructure
MemberAliases = {
TimeSdasA = "LangmuirStrt.TimeSdas"
LangmuirSignalsA = "LangmuirStrt.SignalArray"
}
}
}
}
+FlatIOGAM = {
Class = FlattenedStructIOGAM
InputSignals = {
LangmuirStrt = { //Exactly one structure signal shall be defined.
Type = LangmuirStructure //The Type shall be structured and is required.
DataSource = DDB1 //Compulsory.
}
}
OutputSignals = {
LangmuirStrt_TimeSdas = {
TimeSdas = {
DataSource = "DDB1"
Type = uint32
NumberOfElements = 1
}
LangmuirStrt_SignalArray = {
}
TriggerSdas = {
DataSource = "DDB1"
Type = uint32
}
LangmuirSigs = {
DataSource = "DDB1"
Type = float32
NumberOfElements = 4
}
}
}
}
+GAMLangSigs= {
Class = IOGAM
InputSignals = {
LangmuirStrt_SignalArray = {
LangmuirSigs = {
DataSource = "DDB1"
Type = float32
NumberOfElements = 4
@@ -374,58 +351,17 @@ $MdsLoopApp = {
}
}
}
/*
+GAMFileReaderS = {
Class = IOGAM
InputSignals = {
TimeSdas = {
DataSource = FileReaderS_DS
Type = uint32
}
LangmuirSignals = {
DataSource = FileReaderS_DS
Type = float32
NumberOfElements = 4
}
}
OutputSignals = {
TimeSdasS = {
DataSource = "DDB1"
Type = uint32
}
LangmuirS = {
DataSource = "DDB1"
Type = float32
NumberOfElements = 4
}
}
}
OutMdsW1 = {
DataSource = FileSignalsWriter
Type = float32
}
OutMdsW2 = {
DataSource = FileSignalsWriter
Type = float32
}
OutMdsW3 = {
DataSource = FileSignalsWriter
Type = float32
}
//"LangmuirStrt.SignalsL[0]" = {
LangmuirStrt_SignalArray = {
DataSource = "DDB1"
Type = float32
NumberOfElements = 4
}
*/
+GAMElectricProbes = {
Class = ElectricProbesGAM
Gain = 5 //Compulsory
NumberOfSamplesAvg = 5 //Compulsory
ResetInEachState = 0//Compulsory. 1> reset in each state, 0> reset if the previous state is different from the next state
ResetInEachState = 0 //Compulsory. 1> reset in each state, 0> reset if the previous state is different from the next state
InputSignals = {
LangmuirStrt_SignalArray = {
TriggerSdas = {
DataSource = "DDB1"
Type = uint32
}
LangmuirSigs = {
DataSource = "DDB1"
Type = float32
NumberOfElements = 4
@@ -576,7 +512,7 @@ $MdsLoopApp = {
+Thread1 = {
Class = RealTimeThread
CPUs = 0x1
Functions = {GAMTimer GAMFileReader FlatIOGAM GAMLangSigs GAMElectricProbes GAMFileWriter }
Functions = {GAMTimer GAMFileReader GAMLangSigs GAMElectricProbes GAMFileWriter }
}
}
}