diff --git a/MTC_Adapter/SCMA/AdapterGeneric.cs b/MTC_Adapter/SCMA/AdapterGeneric.cs
index 2651f6c..21b2c2c 100644
--- a/MTC_Adapter/SCMA/AdapterGeneric.cs
+++ b/MTC_Adapter/SCMA/AdapterGeneric.cs
@@ -1745,7 +1745,7 @@ namespace SCMA
}
else if (item.dataType == "RTV")
{
- elRTVCount.Add(item.varName + "-RTV", idxRTV);
+ elRTVCount.Add(item.varName, idxRTV);
currGateway.addItemNodeByType(item.varName, itemType.Event);
istRTVCount[idxRTV] = new sampleVect();
idxRTV++;
@@ -4566,7 +4566,7 @@ namespace SCMA
istRTCounters[numero - 1].addValue(DateTime.Now, Convert.ToInt32(tabDatiMtz[idxTab]));
}
}
- else if (origName.EndsWith("-RTV"))
+ else if (elRTVCount.ContainsKey(origName))
{
// recupero da dictionary!
try
diff --git a/MTC_Adapter/SCMA/DATA/CONF/DataModel.xml b/MTC_Adapter/SCMA/DATA/CONF/DataModel.xml
index 928d83e..8af98ca 100644
--- a/MTC_Adapter/SCMA/DATA/CONF/DataModel.xml
+++ b/MTC_Adapter/SCMA/DATA/CONF/DataModel.xml
@@ -183,7 +183,7 @@
-
+
diff --git a/MTC_Adapter/SCMA/MainForm.cs b/MTC_Adapter/SCMA/MainForm.cs
index d906a49..e18d388 100644
--- a/MTC_Adapter/SCMA/MainForm.cs
+++ b/MTC_Adapter/SCMA/MainForm.cs
@@ -1688,7 +1688,7 @@ namespace SCMA
List selCounter = currDataModel.Variables.FindAll(x => x.CmsDataType.Equals("CounterList"));
foreach (var item in selCounter)
{
- // compilo il file di conf...
+ // compilo il file di conf... se รจ RTV aggiungo la parte RTV..
fileOut.WriteLine($"{item.CmsDataIndex}|{item.BrowseName.Replace("Machine:", "")}|{item.CmsDataOpt}");
numCounter++;
}