Edit

Share via


Mcp3xxx.ReadPseudoDifferential(Int32, Int32) Method

Definition

Reads a value from the device using pseudo-differential inputs

public virtual int ReadPseudoDifferential (int valueChannel, int referenceChannel);
abstract member ReadPseudoDifferential : int * int -> int
override this.ReadPseudoDifferential : int * int -> int
Public Overridable Function ReadPseudoDifferential (valueChannel As Integer, referenceChannel As Integer) As Integer

Parameters

valueChannel
Int32

Channel which represents the signal (valid values: 0 to channelcount - 1).

referenceChannel
Int32

Channel which represents the signal ground (valid values: 0 to channelcount - 1).

Returns

A value corresponding to relative voltage level on specified device channels

Remarks

Like a normal differential input 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). However the reference signal in a pseudo-differential input is expected to be connected to the signal ground. This is used to reduce the effect of external electrical noise on the on the inputs. If there is noise where the noise is likey to impact both the value input and the reference input and the action of subtracting the values helps to cancel it out.

Applies to