Table of Contents

Interface IAnalogInput

Namespace
Loehnert.IO.Contracts
Assembly
Loehnert.IO.dll

Provides functionality for an analog input.

public interface IAnalogInput : IHasKey, IHasDescription
Inherited Members

Properties

Adjustment

Gets or sets the adjustment.

IAdjustment Adjustment { get; set; }

Property Value

IAdjustment

Sensor

Gets or sets the sensor.

ISensor Sensor { get; set; }

Property Value

ISensor

UnadjustedValue

Gets the value, that isn't adjusted by Adjustment.

double UnadjustedValue { get; }

Property Value

double

UnscaledValue

Gets the real value of the analog input, not scaled by Sensor and not adjusted by Adjustment. Usually in V or mA.

double UnscaledValue { get; }

Property Value

double

Value

Gets the value adjusted by Adjustment.

double Value { get; }

Property Value

double

Methods

GetValue()

Gets the value from the sensor, e. g. the temperature.

double GetValue()

Returns

double

The sensor value, scaled and adjusted.

Examples

Implement like:

Adjustment.Scale(Sensor.Scale(this.GetInputValue()))