Mcp3xxx.ReadDifferential(Int32, Int32) Method
Definition
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
Parameters
- 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).
Returns
A value corresponding to relative voltage level on specified device channels
Remarks
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.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for