Skip to Navigation

Differential Readings (App Note)

Differential vs. Single-Ended:

In this discussion, a voltage is the difference in electric potential between 2 points.  For a single-ended voltage reading, 1 point is an analog input terminal, while the other point is the common ground (GND) of the LabJack.  For a differential voltage reading, the 2 points are 2 analog input terminals.

 

Differential vs. Bipolar:

Note that differential is not the same as bipolar, and they do not necessarily have anything to do with each other (but sometimes do).  Bipolar refers to a voltage that can be positive or negative.  We use the term bipolar or true bipolar to describe a point that can be greater than or less than ground.  We use the term pseudo-bipolar to describe a voltage where the positive point can be greater than or less than the negative point (thus the difference is positive or negative), but neither point can be less than ground.

 

Differential inputs must have a reference:

The most common mistake when using differential inputs is connecting 2 signals that have no reference to ground.  Do an Internet search for "instrumentation-amplifier floating-inputs" or just see the "Floating Voltages" section of the following article about instrumentation amplifiers (in-amps):

http://www.planetanalog.com/document.asp?doc_id=527518

Consider an obviously floating voltage source such as a thermocouple or AA battery.  If you simply connect the positive and negative leads to 2 analog inputs on a U6, or to IN+ and IN- on an LJTick-InAmp, there is no ground path for the bias currents that must flow in/out of the inputs.  The voltage source will try to properly hold the voltage difference between the leads, but the voltage of each lead compared to ground will likely be near one of the power rails and the common-mode voltage will not be valid.  A common solution is a resistor from the negative terminal to ground, which can be quite large if desired.

Another example is a bridge circuit excited by an external supply which is isolated from the U6 or LJTick-InAmp.  In this case the negative from the supply should be connected to GND (a series resistor can be considered if you don't want a direct connection between the supply ground and GND).

 

The common-mode voltage must be in range:

Another common mistake is connecting voltages that are referenced to ground, but where the voltages compared to ground are not in the valid range.

For example, the LJTick-InAmp uses a pair of AD623 instrumention amplifiers from Analog Devices with power rails at VS (~5 volts) and GND (0 volts).  Figures 22 and 23 of the AD623 datasheet show the common-mode range.  Note that the maximum under any condition is about 3.5 volts and the minimum is about -0.3 volts.  Signals with a common-mode voltage outside -0.3 to +3.5 volts will definitely not work, and for signals inside that range we recommend looking at the LJTIA signal range tables or online calculator from  Appendix A of the LJTick-InAmp Datasheet.

Say you have a 12 volt battery system where the battery negative is connected to LabJack/LJTIA GND.  You want to measure the current the battery is providing to some load, so you put a high-side shunt between the positive battery terminal and the load.  The shunt is providing a 100 mV signal, so the voltage compared to ground on each side of the shunt is 12.0 and 11.9 volts, and thus the common-mode voltage is 11.95 volts.  This is definitely too high for the LJTIA.  However, if a low-side shunt is used instead between the negative battery terminal and the load, the common-mode voltage is only 0.05 volts and the LJTIA is fine.

For signal ranges on the U6, see Section 2.6.5 of the U6 User's Guide.

 

Why don't I worry about ground when I measure voltages with a simple DMM?

So why can you just take the 2 leads from a simple battery-powered DMM and measure the voltage across a battery or thermocouple, regardless of what grounds might or might not be connected?  Because the DMM is isolated and is actually taking a single-ended reading.  The black lead is ground for the DMM, but since it is isolated that ground has no meaning to the battery or thermocouple, and wherever the black lead connects is defined as ground for the DMM.

How about a fancier DMM with 2 channels, and 2 pairs of red/black leads, powered by AC mains?  First the input channels are isolated (optically or galvanically) from AC mains, so there is no common ground there, and the input channels are also isolated from each other, so the black leads are ground for each channel but not the same.  Each black lead defines ground for each channel.

 

 

Common amplifier types:

Operational Amplifier (op-amp):  Single-ended input and output.

Instrumentation Amplifier (in-amp):  Differential input and single-ended output.

Difference Amplifier (diff-amp):  Differential input and output.

 

Comments

#1

I am planning on using a U3-HV to measure 4 analog signals, 3 single ended and one differential. The data is to be collected using a laptop. All the signals come from transducers powered by external DC power supplies. All the single ended signals are referenced to AC mains ground. Since the Labjack is powered by the laptop, is it floating whether or not the laptop is plugged into the wall? Is it safe to connect GND or SGND to the AC mains ground whether or not the laptop is plugged in and should it be done through a 100 Ohm resistor or directly? Which ground terminal should I use and does it change depending on whether the laptop is plugged in?

Thanks!

#2

My recommendation would be that if you are not real sure, use a USB isolator.  If you mess up you should just blow the isolator but not hurt your host.

Section 2.6.3.4 has some grounding guidelines.

With almost every AC/DC power supply, the DC outputs are isolated from the AC input, so it sounds strange that your signals are referred to AC mains ground.  Perhaps use the forum to get into more details about your particular transducers, power supplies, and wiring.

#3

Hi,

Could I make differential analog inputs changing even input to negative and odd input to positive

I make differential measurement with AIN0 -AIN1 but then I change the polarity a make a new measurement.  I mean than in tha t new measurement AIN0 begin negative and ANI1 begin positive, and I had problem with this.

Thanks

#4

On the U6 or T7?  The answer is no.  A differential measurement is always Channel# - Channel#+1, where Channel# is even.  So positive channel is always even.  If you want odd-even, all you have to do is multiply the reading by -1 in software.

#5

how can I set resolution with differential analog input

#6

I believe you are using the U6 and the UD driver.  Resolution is a device-wide setting, so you use iotype LJ_ioPUT_CONFIG with special channel LJ_chAIN_RESOLUTION, and that sets the resolution index for all analog inputs (single-ended and differential).  See Section 4.3.3 of the U6 User's Guide.

Note that range is specified on a per channel basis.  For differential, the range specified for the positive channel is used.

#7

Could you please explain a bit more on the isolation of a DMM ground and how it can be done.

#8

It is not saying that a DMM can be isolated, but rather is saying that "a battery-powered DMM is isolated".  When you have a battery-powered DMM in your hand, it has no connections to earth ground or any other potential.  When you connect the DMM to the signal to be measured, it is not isolated from that signal, but is isolated from everything else.