From the Example Code in VTScada Help.
NewData = Dictionary();
NewData["J1"] = TimeValuePair(Data.DataValues.T1, Data.DataValues.V1);
NewData["J2"] = TimeValuePair(Data.DataValues.T2, Data.DataValues.V2);
NewData["J3"] = TimeValuePair(Data.DataValues.T3, Data.DataValues.V3);
NewData["History"] = TimeValuePair(New(3), New(3));
NewData["History"].Timestamp[0] = Data.DataValues.T1;
NewData["History"].Timestamp[1] = Data.DataValues.T2;
NewData["History"].Timestamp[2] = Data.DataValues.T3;
NewData["History"].Value[0] = Data.DataValues.V1;
NewData["History"].Value[1] = Data.DataValues.V2;
NewData["History"].Value[2] = Data.DataValues.V3;
NewData["UniqueID"] = UniqueID;
NewData["Timestamp"] = "Not a timestamp";
Return(NewData);
If this was An Analog status tag, would I put J1, in the current value, and History[0] in the tag?
From the Example Code in VTScada Help.
NewData = Dictionary();
NewData["J1"] = TimeValuePair(Data.DataValues.T1, Data.DataValues.V1);
NewData["J2"] = TimeValuePair(Data.DataValues.T2, Data.DataValues.V2);
NewData["J3"] = TimeValuePair(Data.DataValues.T3, Data.DataValues.V3);
NewData["History"] = TimeValuePair(New(3), New(3));
NewData["History"].Timestamp[0] = Data.DataValues.T1;
NewData["History"].Timestamp[1] = Data.DataValues.T2;
NewData["History"].Timestamp[2] = Data.DataValues.T3;
NewData["History"].Value[0] = Data.DataValues.V1;
NewData["History"].Value[1] = Data.DataValues.V2;
NewData["History"].Value[2] = Data.DataValues.V3;
NewData["UniqueID"] = UniqueID;
NewData["Timestamp"] = "Not a timestamp";
Return(NewData);
If this was An Analog status tag, would I put J1, in the current value, and History[0] in the tag?