Mcp3xxx.ReadDifferential(Int32, Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads a value from the device using differential inputs
public virtual int ReadDifferential (int valueChannel, int referenceChannel);
abstract member ReadDifferential : int * int -> int
override this.ReadDifferential : int * int -> int
Public Overridable Function ReadDifferential (valueChannel As Integer, referenceChannel As Integer) As Integer
- valueChannel
- Int32
Channel which represents the signal driving the value in a positive direction (valid values: 0 to channelcount - 1).
- referenceChannel
- Int32
Channel which represents the signal driving the value in a negative direction (valid values: 0 to channelcount - 1).
A value corresponding to relative voltage level on specified device channels
The value that is read respresents the difference between the voltage on the value channel and the voltage on the reference channel (valueChannel Reading - referenceChannel Reading). This subtraction is performed in software which may mean that errors are introduced with rapidly changing signals.
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |