Class AnalogInputChannel
Represents an analog HBM input channel.
public class AnalogInputChannel : CompositeModule, INotifyPropertyChangedEx, ICompositeModule, ILisrtModule, INotifyPropertyChanged, IInputChannel, IAnalogInput, IHasKey, IHasDescription, IDisposable
- Inheritance
-
PropertyChangedBaseAnalogInputChannel
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
AnalogInputChannel(string, AnalogInChannel, Device)
Initializes a new instance of the AnalogInputChannel class.
public AnalogInputChannel(string name, AnalogInChannel channel, Device device)
Parameters
name
stringName for the input.
channel
AnalogInChannelHBM driver channel.
device
DeviceHBM driver device.
Exceptions
- ArgumentNullException
Thrown when
channel
ordevice
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
Key
Gets the key.
public string Key { get; }
Property Value
MeasureValuesUpdateInterval
Gets or sets the interval for updating the measure values for the channels. Default is 100ms.
public double MeasureValuesUpdateInterval { get; set; }
Property Value
SampleRate
Gets the sample rate.
public int SampleRate { get; }
Property Value
Sensor
Gets or sets the sensor.
public ISensor Sensor { get; set; }
Property Value
SignalName
Gets the signal name.
public string SignalName { get; }
Property Value
Value
Gets the value.
public double Value { get; }
Property Value
Waveform
Gets the latest waveform.
public IWaveform Waveform { get; }
Property Value
XUnit
Gets or sets the x unit (usually 'ms').
public string XUnit { get; set; }
Property Value
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
doubleZero balance target value.
Exceptions
- IOException
Thrown when an error occurs.