Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Historian SDK

Retrieving Analog Summary Data

The workflow for retrieving analog summary data is similar to the one for retrieving history data:

  1. Create an instance of the AnalogSummaryQuery class.
  2. Create an instance of the AnalogSummaryQueryArgs class and provide all parameters of the query, such as the tag names, start time, end time, and so on. 
  3. Start the query using the AnalogSummaryQuery.StartQuery() method. 
  4. Call the AnalogSummaryQuery.MoveNext() method in a loop until it returns false to fetch all data rows one by one. Each row is represented as an instance of the AnalogSummaryQueryResult class with properties matching the corresponding columns of the AnalogSummary table of the Runtime database.
  5. End the query by calling the AnalogSummaryQuery.EndQuery() method to release immediately all resources allocated by the query object.