Table of Contents

Class Waveform

Namespace
Loehnert.Lisrt.Hbm
Assembly
Loehnert.Lisrt.Hbm.dll

Represents a waveform for an HBM channel.

public class Waveform : IWaveform, IHasKey
Inheritance
Waveform
Implements
Inherited Members

Constructors

Waveform(string, int)

Initializes a new instance of the Waveform class.

public Waveform(string key, int sampleRate)

Parameters

key string

Unique key.

sampleRate int

Sample rate for calculating the time.

Properties

Key

Gets a unique key.

public string Key { get; }

Property Value

string

Points

Gets the points of the waveform.

public IPointCollection Points { get; }

Property Value

IPointCollection

StartTime

Gets the start time. It depends on implementation, when the start time is set.

public DateTime? StartTime { get; }

Property Value

DateTime?

Methods

AddMeasurementValues(MeasurementValues)

Adds the newest values of an Hbm.Api.Common.Entities.MeasurementValues object.

public void AddMeasurementValues(MeasurementValues values)

Parameters

values MeasurementValues

Values with timestamps.

Exceptions

InvalidOperationException

Thrown when there are not as many Hbm.Api.Common.Entities.MeasurementValues.Timestamps as Hbm.Api.Common.Entities.MeasurementValues.Values.