Table of Contents

Class MultimeterInput

Namespace
Loehnert.Lisrt.IO.Beckhoff.Channels
Assembly
Loehnert.Lisrt.IO.Beckhoff.dll

Represents a multimeter input of a Beckhoff IO system.

public class MultimeterInput : ChannelLisrtModuleBase, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged, IHasDeviceLabel, IHasKey, IMultimeter, IHasServiceView
Inheritance
PropertyChangedBase
MultimeterInput
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.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

IFunction

Functions

Gets an enumeration of possible functions.

public IEnumerable<IFunction> Functions { get; }

Property Value

IEnumerable<IFunction>

Icon

Gets a icon which is representative for the module.

public override Uri Icon { get; }

Property Value

Uri

LastMeasuredValue

Gets the with Measure() measured last value.

public double LastMeasuredValue { get; }

Property Value

double

Range

Gets the current range.

public IRange Range { get; }

Property Value

IRange

Ranges

Gets an enumeration of possible ranges.

public IEnumerable<IRange> Ranges { get; }

Property Value

IEnumerable<IRange>

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

function string

A key from Functions.

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 object

A 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()