Click or drag to resize

TemporalMeasurementSetValue Method

Sets numeric value and timestamp, as ticks, of this TemporalMeasurement.

Namespace: GSF.TimeSeries
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.241-beta
Syntax
public bool SetValue(
	Ticks currentTime,
	Ticks timestamp,
	double value,
	MeasurementStateFlags flags
)
View Source

Parameters

currentTime  Ticks
Timestamp, in ticks, used to constrain TemporalMeasurement (typically set to real-time, i.e. "now").
timestamp  Ticks
New timestamp, in ticks, for TemporalMeasurement.
value  Double
New value for TemporalMeasurement, only stored if timestamp are newer than current Ticks.
flags  MeasurementStateFlags
New flags for TemporalMeasurement.

Return Value

Boolean
true if value was updated; otherwise false.
Remarks

Operation will only store a value that is newer than the cached value.

See Also