Table of Contents

Class AnalogInputChannel

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

Represents an analog HBM input channel.

public class AnalogInputChannel : CompositeModule, INotifyPropertyChangedEx, ICompositeModule, ILisrtModule, INotifyPropertyChanged, IInputChannel, IAnalogInput, IHasKey, IHasDescription, IDisposable
Inheritance
PropertyChangedBase
AnalogInputChannel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

AnalogInputChannel(string, AnalogInChannel, Device)

Initializes a new instance of the AnalogInputChannel class.

public AnalogInputChannel(string name, AnalogInChannel channel, Device device)

Parameters

name string

Name for the input.

channel AnalogInChannel

HBM driver channel.

device Device

HBM driver device.

Exceptions

ArgumentNullException

Thrown when channel or device is null.

ArgumentNullException

Thrown when name is null or empty.

Properties

Calibration

Gets or sets the calibration.

public ICalibration Calibration { get; set; }

Property Value

ICalibration

Description

Gets a translatable description.

public ITranslation Description { get; }

Property Value

ITranslation

IsMeasuring

Gets a value indicating whether the channel is measuring.

public bool IsMeasuring { get; }

Property Value

bool

Key

Gets the key.

public string Key { get; }

Property Value

string

MeasureValuesUpdateInterval

Gets or sets the interval for updating the measure values for the channels. Default is 100ms.

public double MeasureValuesUpdateInterval { get; set; }

Property Value

double

SampleRate

Gets the sample rate.

public int SampleRate { get; }

Property Value

int

Sensor

Gets or sets the sensor.

public ISensor Sensor { get; set; }

Property Value

ISensor

SignalName

Gets the signal name.

public string SignalName { get; }

Property Value

string

Value

Gets the value.

public double Value { get; }

Property Value

double

Waveform

Gets the latest waveform.

public IWaveform Waveform { get; }

Property Value

IWaveform

XUnit

Gets or sets the x unit (usually 'ms').

public string XUnit { get; set; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetValue()

Gets the value from the sensor.

public double GetValue()

Returns

double

The sensor value.

GetWaveform()

Gets the waveform from the sensor.

public IWaveform GetWaveform()

Returns

IWaveform

The sensor waveform.

SetZeroBalance()

Executes a zero balancing by computing a new offset, using the configured zero target.

public void SetZeroBalance()

Exceptions

IOException

Thrown when an error occurs.

SetZeroBalance(double)

Executes a zero balancing by computing a new offset, using the targetValue.

public void SetZeroBalance(double targetValue)

Parameters

targetValue double

Zero balance target value.

Exceptions

IOException

Thrown when an error occurs.