EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-08-19 09:32 AM
I want to write some code to enter our historian path into the Historic Exports field, but I cannot find the the name of the field. I looked in the ServerObject help section to no avail. I have tried the following Node.Interface.HistoricExportIds , Node.Interface.Historic.Export and Node.Interface.Historic.Export.ID
Any help would be greatly appreciated.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-08-21 01:47 AM
It is in the online schema:
HistoricExportIds | Historic Exports | Array of Reference (CHistoricExport) |
Writing to an array is possible. Which API are you using?
You'll need to read the array first to check existing entries and avoid duplication.
See this C# .Net Client API code:
ClearScada.Client.Simple.DBObject PointObj = connection.GetObject("New Analog Point");
Aggregate hisagg = PointObj.Aggregates["Historic"];
int[] heids = (int[])hisagg["HistoricExportIds"];
// TODO - check you don't already have the new Id
int newAggregateId = 462970;
int[] newheids = new int [heids.Length + 1];
for( int i = 0; i < heids.Length; i++)
{
newheids[i] = heids[i];
}
newheids[heids.Length] = newAggregateId;
hisagg["HistoricExportIds"] = newheids;
I'm sure you could write better!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-08-21 01:47 AM
It is in the online schema:
HistoricExportIds | Historic Exports | Array of Reference (CHistoricExport) |
Writing to an array is possible. Which API are you using?
You'll need to read the array first to check existing entries and avoid duplication.
See this C# .Net Client API code:
ClearScada.Client.Simple.DBObject PointObj = connection.GetObject("New Analog Point");
Aggregate hisagg = PointObj.Aggregates["Historic"];
int[] heids = (int[])hisagg["HistoricExportIds"];
// TODO - check you don't already have the new Id
int newAggregateId = 462970;
int[] newheids = new int [heids.Length + 1];
for( int i = 0; i < heids.Length; i++)
{
newheids[i] = heids[i];
}
newheids[heids.Length] = newAggregateId;
hisagg["HistoricExportIds"] = newheids;
I'm sure you could write better!
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.