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

Historian SDK

Retrieving State Summary Data

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

  1. Create an instance of the StateSummaryQuery class.
  2. Create an instance of the StateSummaryQueryArgs 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 StateSummaryQuery.StartQuery() method. 
  4. Call the StateSummaryQuery.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 StateSummaryQueryResult class with properties matching the corresponding columns of the StateSummary table of the Runtime database.
  5. End the query by calling the StateSummaryQuery.EndQuery() method to release immediately all resources allocated by the query object.