Sets whether to use a ratiometric or fixed reference on the analog inputs.
Namespace:
PhidgetsAssembly: Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34
Syntax
| C# |
|---|
public bool Ratiometric { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property Ratiometric As Boolean |
| Visual C++ |
|---|
public: property bool Ratiometric { bool get (); void set (bool value); } |
Remarks
Most sensors use the ratiometric model, where the returned value will be between 0 and +Vdd, where Vdd is the voltage supplied to the sensor - approximately 5v.
Some sensors output a specific voltage regardless of their supply voltage, and for these we provide a non-ratiometric fixed +5v reference.
The default value for this is ratiometric (true).
This only applies to boards with analog sensor inputs
Exceptions
| Exception | Condition |
|---|---|
| Phidgets..::.PhidgetException | If ratiometric is not supported, or the Phidget is not opened and attached. |