From a8bf9529b4ba794219ed3a721e0b7f3373062f24 Mon Sep 17 00:00:00 2001
From: galperti <cristian.galperti@epfl.ch>
Date: Fri, 24 Jun 2022 15:58:38 +0200
Subject: [PATCH] first workling autogenerated MARTe2 cfg file for template

---
 .../template/marte2cfg/algo_template_create_marte2_cfg.m  | 2 +-
 algos/template/marte2cfg/data_states.cfgsrc               | 8 ++++----
 algos/template/marte2cfg/rtapp-simulinkwrapper.cfgsrc     | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/algos/template/marte2cfg/algo_template_create_marte2_cfg.m b/algos/template/marte2cfg/algo_template_create_marte2_cfg.m
index 7240f93..3ce395f 100644
--- a/algos/template/marte2cfg/algo_template_create_marte2_cfg.m
+++ b/algos/template/marte2cfg/algo_template_create_marte2_cfg.m
@@ -11,7 +11,7 @@
 % source MDSplus shotnumber
 mdssrcshot=-1;
 % destination MDSplus shotnumber (-1 stands for increment current by 1)
-mdsdstshot=2;
+mdsdstshot=1;
 % verbosity level
 verbosity=2;
 
diff --git a/algos/template/marte2cfg/data_states.cfgsrc b/algos/template/marte2cfg/data_states.cfgsrc
index aa749ae..9e567da 100644
--- a/algos/template/marte2cfg/data_states.cfgsrc
+++ b/algos/template/marte2cfg/data_states.cfgsrc
@@ -40,10 +40,10 @@
                 }
             */
             
-                Thread1_Cycletime       = { NodeName = "ST.CH01" Period = 1 AutomaticSegmentation = 0 MakeSegmentAfterNWrites = 2000 SamplePhase = 0 }
-                GAMSimulink1_ReadTime   = { NodeName = "ST.CH02" Period = 1 AutomaticSegmentation = 0 MakeSegmentAfterNWrites = 2000 SamplePhase = 0 }
-                GAMSimulink1_ExecTime   = { NodeName = "ST.CH03" Period = 1 AutomaticSegmentation = 0 MakeSegmentAfterNWrites = 2000 SamplePhase = 0 }
-                GAMSimulink1_WriteTime  = { NodeName = "ST.CH04" Period = 1 AutomaticSegmentation = 0 MakeSegmentAfterNWrites = 2000 SamplePhase = 0 }
+                Thread1_Cycletime       = { NodeName = "template.system.CH01" Period = 1 AutomaticSegmentation = 0 MakeSegmentAfterNWrites = 2000 SamplePhase = 0 }
+                GAMSimulink1_ReadTime   = { NodeName = "template.system.CH02" Period = 1 AutomaticSegmentation = 0 MakeSegmentAfterNWrites = 2000 SamplePhase = 0 }
+                GAMSimulink1_ExecTime   = { NodeName = "template.system.CH03" Period = 1 AutomaticSegmentation = 0 MakeSegmentAfterNWrites = 2000 SamplePhase = 0 }
+                GAMSimulink1_WriteTime  = { NodeName = "template.system.CH04" Period = 1 AutomaticSegmentation = 0 MakeSegmentAfterNWrites = 2000 SamplePhase = 0 }
                 
                 >OUTPUTBUSMDSWRITER<
             }
diff --git a/algos/template/marte2cfg/rtapp-simulinkwrapper.cfgsrc b/algos/template/marte2cfg/rtapp-simulinkwrapper.cfgsrc
index c9b4a80..7239fec 100644
--- a/algos/template/marte2cfg/rtapp-simulinkwrapper.cfgsrc
+++ b/algos/template/marte2cfg/rtapp-simulinkwrapper.cfgsrc
@@ -10,7 +10,7 @@
             NonVirtualBusMode = "Structured" 
                                             
 			InputSignals = {		
-				realtime	= { DataSource = DDB1 Type = float32 NumberOfElements = 1 NumberOfDimensions=0 Alias = wavegen_0 }
+				realtime	= { DataSource = DDB1 Type = float32 NumberOfElements = 1 NumberOfDimensions=0 Alias = zero }
                 >INPUTBUSSTRUCT<
  			}
  			OutputSignals = { 
-- 
GitLab