C# 클래스 openHistorian.MeasurementAPI

파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian

공개 메소드들

메소드 설명
EstablishMeasurementKeyCache ( DataSet metadata, string instanceName ) : void

Establish measurement key cache based on received meta-data.

If you want the IMeasurement.Key values that are returned from a GetHistorianData query to have properly assigned Guid based signal IDs, i.e., MeasurementKey.SignalID, establish the measurement key cache as soon as you have received meta-data from a GEP subscription query.

GetContiguousDataRegions ( Connection connection, System.DateTime startTime, System.DateTime stopTime, ulong measurementID, Resolution resolution, long expectedFullResolutionTicks = 333333 ) : DateTime>>.IEnumerable

Read historian data from server.

1 tick = 100 nanoseconds.

GetHistorianData ( Connection connection, System.DateTime startTime, System.DateTime stopTime, string measurementIDs = null, Resolution resolution = Resolution.Full ) : IEnumerable

Read historian data from server.

메소드 상세

EstablishMeasurementKeyCache() 공개 정적인 메소드

Establish measurement key cache based on received meta-data.
If you want the IMeasurement.Key values that are returned from a GetHistorianData query to have properly assigned Guid based signal IDs, i.e., MeasurementKey.SignalID, establish the measurement key cache as soon as you have received meta-data from a GEP subscription query.
public static EstablishMeasurementKeyCache ( DataSet metadata, string instanceName ) : void
metadata System.Data.DataSet Meta-data received from a subscription.
instanceName string Instance name of the historian.
리턴 void

GetContiguousDataRegions() 공개 정적인 메소드

Read historian data from server.
1 tick = 100 nanoseconds.
public static GetContiguousDataRegions ( Connection connection, System.DateTime startTime, System.DateTime stopTime, ulong measurementID, Resolution resolution, long expectedFullResolutionTicks = 333333 ) : DateTime>>.IEnumerable
connection Connection openHistorian connection.
startTime System.DateTime Start time of query.
stopTime System.DateTime Stop time of query.
measurementID ulong Measurement ID to test for data continuity.
resolution Resolution Resolution for testing data.
expectedFullResolutionTicks long Expected number of ticks per interval at full resolution, e.g., 33,333 = 1/30 of a second representing a sampling interval of 30 times per second.
리턴 DateTime>>.IEnumerable

GetHistorianData() 공개 정적인 메소드

Read historian data from server.
public static GetHistorianData ( Connection connection, System.DateTime startTime, System.DateTime stopTime, string measurementIDs = null, Resolution resolution = Resolution.Full ) : IEnumerable
connection Connection openHistorian connection.
startTime System.DateTime Start time of query.
stopTime System.DateTime Stop time of query.
measurementIDs string Comma separated list of measurement IDs to query - or null for all available points.
resolution Resolution Resolution for data query.
리턴 IEnumerable