PGA Gain Setting – (Differential Only) 0b000 = 1, 0b001 = 2, 0b010 = 4, 0b100 = 8, 0b101 = 10, 0b110 = 16, 0b111 = 20
Mux Settings – 0b0000 = 0-1 (Differential), 0b0001 = 2-3 (Differential), 0b0010 = 4-5 (Differential), 0b0011 = 6-7
(Differential). Single-Ended readings = 0b1000 + AI Number.
LabJackPython Example
>>> import u12
>>> d = u12.U12()
open called
Writing: [0x0, 0x0, 0x0, 0x0, 0x0, 0x57, 0x0, 0x0]
Received: [0x57, 0x0, 0x0, 0x0, 0xff, 0xff, 0x0, 0x0]
>>> d.rawAIBurst()
Writing: [0x8, 0x9, 0xa, 0xb, 0xe1, 0xa0, 0xa, 0x98]
Received: [0x80, 0x0, 0x99, 0x8, 0x2a, 0x99, 0x2c, 0x6]
Received: [0x80, 0x20, 0x99, 0xc, 0x2a, 0x99, 0x2c, 0x4]
Received: [0x80, 0x40, 0x99, 0xc, 0x2c, 0x99, 0x2a, 0x6]
Received: [0x80, 0x60, 0x99, 0xc, 0x2a, 0x99, 0x2c, 0x4]
Received: [0x80, 0x80, 0x99, 0xc, 0x2c, 0x99, 0x2c, 0x6]
Received: [0x80, 0xa0, 0x99, 0x0, 0x2a, 0x99, 0x2c, 0x4]
Received: [0x80, 0xc0, 0x99, 0xc, 0x2a, 0x99, 0x2c, 0x6]
Received: [0x80, 0x0, 0x99, 0xc, 0x2a, 0x99, 0x2c, 0x6]
{
'Channel0': [1.2890625, 1.30859375, ..., 1.30859375],
'Channel3': [1.279296875, 1.26953125, ..., 1.279296875],