Click or drag to resize

StatisticsEngineTryLookupStatisticSource Method

Attempts to lookup statistic source and signal index from a measurement signalReference.

Namespace: GSF.TimeSeries.Statistics
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.207-beta
Syntax
public static bool TryLookupStatisticSource(
	string signalReference,
	out string sourceCategory,
	out int signalIndex
)
View Source

Parameters

signalReference  String
Signal reference.
sourceCategory  String
Statistic source category as defined in Statistics table Source column.
signalIndex  Int32
Statistic signal index as defined in Statistics table SignalIndex column.

Return Value

Boolean
true if lookup succeeds; otherwise, false.
Remarks
The statistic source acronyms used in measurement signal references are defined dynamically by statistic sources during registration. This function returns the source category, as defined in the Statistic table, for a given signal reference to allow for reverse lookups. As a result, user will need to make sure that all statistic sources have been registered before calling this function in order to receive accurate results.
See Also