Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
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.
You’ve reached the end of your document
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.