User Manual

Figure 2-4. Single-ended measurement with voltage divider circuit.
Because the input bias current is known, as a function of input voltage, the simple voltage
divider equation can be modified as follows to account for input bias current:
R2 = Va / [((Vs-Va)/R1) – (8.181µ * Va) + 11.67µ]
As an alternative to the equation above, Va can be buffered by a single-supply rail-to-rail
operational amplifier, and the original simple voltage divider equation can be used. This
solution works for any single-ended signal which stays between 0 and +5 volts. Some op-amp
choices are:
TLV2462
LMC6482
MAX4166
Software
Readings from the analog inputs are returned by the functions EAnalogIn, AISample, AIBurst,
and AIStreamRead.
EAnalogIn is a simplified (E is for easy) function that returns a single reading from 1 analog
input channel.
AISample returns a single reading of 1-4 channels, and takes up to 20 ms to execute, providing
a maximum date rate of about 50 Hz per channel. This function also controls the status LED
and sets the state of the IO pins.
AIBurst acquires multiple samples of 1-4 channels at a hardware-timed sample rate of up to
8192 Hz. The acquisition can be triggered based on the change of state of an IO pin. This
function also controls the status LED and returns the states of the IO pins (which are read every
4 samples).
Internally, the actual number of samples collected and transferred by the LabJack during an
AIBurst call is the smallest power of 2, from 64 to 4096, which is at least as big as numSamples.
The execution time of this function, in milliseconds, can be estimated as (auto or turbo mode):
30+(1000*numSamplesActual/sampleRate)+(0.4*numSamplesActual)
numSamples = numScans * numChannels