Hi, I have some code that I saved in a text file. I would like to re use it.
However, I now get an error with this line - His.Interface.LoadDataValue(1, 192, DateTime.UtcNow, sampleGS);
Severity Code Description Project File Line Suppression State
Error CS1061 'object' does not contain a definition for 'LoadDataValue' and no accessible extension method 'LoadDataValue' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) DNP3FT C:\Users\Administrator\source\repos\DNP3FT\DNP3FT\Program.cs 183 Active
Is it to do with the .net frame work version?
I have
However, I now get an error with this line - His.Interface.LoadDataValue(1, 192, DateTime.UtcNow, sampleGS);
Severity Code Description Project File Line Suppression State
Error CS1061 'object' does not contain a definition for 'LoadDataValue' and no accessible extension method 'LoadDataValue' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?) DNP3FT C:\Users\Administrator\source\repos\DNP3FT\DNP3FT\Program.cs 183 Active
Is it to do with the .net frame work version?
I have
C#:
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ScxV6DbClient;
using System.Diagnostics;
C#:
ScxV6Server objServer = new ScxV6Server();
objServer.Connect("Local", "admin", "admin");
ScxV6Object obj = objServer.FindObject("xxx.xxx");
ScxV6Aggregate His = obj.Aggregate["Historic"];
for (int i = 1; i < 59; i++)
{
//Write to history
His.Interface.LoadDataValue(1, 192, DateTime.UtcNow, sampleGS[i]);
obj = null;
}
objServer.Disconnect();