Class MultimeterInput
Represents a multimeter input of a Beckhoff IO system.
public class MultimeterInput : ChannelLisrtModuleBase, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged, IHasDeviceLabel, IHasKey, IMultimeter, IHasServiceView
- Inheritance
-
PropertyChangedBaseMultimeterInput
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Properties
Description
Gets or sets the translatable description.
public ITranslation Description { get; set; }
Property Value
- ITranslation
Function
Gets the current function.
public IFunction Function { get; }
Property Value
Functions
Gets an enumeration of possible functions.
public IEnumerable<IFunction> Functions { get; }
Property Value
Icon
Gets a icon which is representative for the module.
public override Uri Icon { get; }
Property Value
LastMeasuredValue
Gets the with Measure() measured last value.
public double LastMeasuredValue { get; }
Property Value
Range
Gets the current range.
public IRange Range { get; }
Property Value
Ranges
Gets an enumeration of possible ranges.
public IEnumerable<IRange> Ranges { get; }
Property Value
Methods
Measure()
Measures with the current configuration and waits for the next value.
public double Measure()
Returns
- double
The measured value.
Exceptions
- InvalidOperationException
Thrown when under or over range is detected, or data are invalid, or range is invalid or the terminal has an error.
- TimeoutException
Thrown when the TxPDO Toggle bit does not signal a new measurement in the expected time range.
SetFunction(string)
Configures measurement measure function.
public void SetFunction(string function)
Parameters
Exceptions
- ArgumentException
Thrown when any argument is null, empty or whitespace.
- KeyNotFoundException
Throw when the
function
key isn't found.
SetRange(object)
Sets the measuring range.
public void SetRange(object range)
Parameters
range
objectA range as floating point value (e.g. 10.0 means from -10.0V to +10.0V), or a string representing a range: "AUTO", "MIN" or "MAX.
Remarks
If range is a floating point value, the best range must be selected, e.g. 6.8 selects the 10V range.
Exceptions
- ArgumentNullException
Thrown when any argument is null.
- InvalidOperationException
Thrown when the module is not initialized or no function is selected.
- KeyNotFoundException
Thrown when
range
is string, whose key is not Ranges.- NotSupportedException
Thrown when
range
is a number, but the current function doesn't support a value range.
ShowServiceView()
Shows the service window.
public void ShowServiceView()