Skip to main content

Class CurrentLoopSensor

Abstract base class for current loop sensors that provides common functionality

Assembly: CurrentLoop.dll​
View Source​
Declaration
public abstract class CurrentLoopSensor

Derived:
Meadow.Foundation.CurrentLoop.CurrentTransmitter, Meadow.Foundation.CurrentLoop.PressureTransmitter, Meadow.Foundation.CurrentLoop.TemperatureTransmitter

Properties​

Range​

Gets the current loop range (0-20mA or 4-20mA) for this sensor

View Source​
Declaration
public CurrentLoopRange Range { get; }

Methods​

SetOutputCurrent(Current)​

Sets the output current, ensuring it's within valid range

View Source​
Declaration
protected Task SetOutputCurrent(Current current)
Returns​

System.Threading.Tasks.Task: A task representing the asynchronous operation

Parameters​
TypeNameDescription
Meadow.Units.CurrentcurrentThe current to output
Exceptions​

System.ArgumentOutOfRangeException
Thrown when current is outside 0-20mA range

GetOutputCurrent()​

Sets the currently set output current

View Source​
Declaration
public Current GetOutputCurrent()
Returns​

Meadow.Units.Current