EasyManua.ls Logo

LabJack U12 - 5.6 - AlContinuous

LabJack U12
61 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
'Channel2': [1.46484375, 1.46484375, ..., 1.46484375],
'PGAOvervoltages': [False, False, ..., False],
'IO3toIO0States':
[
<BitField object: [ IO3 = Low (0), IO2 = Low (0),
IO1 = Low (0), IO0 = Low (0) ] >,
<BitField object: [ IO3 = Low (0), IO2 = Low (0),
IO1 = Low (0), IO0 = Low (0) ] >,
...,
<BitField object: [ IO3 = Low (0), IO2 = Low (0),
IO1 = Low (0), IO0 = Low (0) ] >],
'BufferOverflowOrChecksumErrors': [False, False, ..., False],
'Channel1': [1.455078125, 1...., 1.455078125],
'IterationCounters': [0, 1, 2, 3, 4, 5, 6, 0],
'Backlogs': [0, 0, 0, 0, 0, 0, 0, 0]
}
5.6 - AIContinuous
After receiving a continuous AI command, the LabJack collects 4 channels at a sample rate determined by AIINT ( Analog Input
Interval ) which is the interval between samples in cycles. The data is put in the buffer as it it is sampled. Simultaneously, the
LabJack pulls data out of the buffer and tries to send it to the host. This continues until the LabJack receives any command from
the host. If a command is received the continuous operation is canceled and the command is executed normally. If the LED is
enabled, it toggles every 40 samples during acquisition and is set on when stopped.
Command
Byte #
Description
0
Bit 7: X
Bits 6-4: PGA for 1st Channel
Bits 3-0: MUX command for 1st Channel.
1
Bit 7: X
Bits 6-4: PGA for 2nd Channel
Bits 3-0: MUX command for 2nd Channel.
2
Bit 7: X
Bits 6-4: PGA for 3rd Channel
Bits 3-0: MUX command for 3rd Channel.
3
Bit 7: X
Bits 6-4: PGA for 4th Channel
Bits 3-0: MUX command for 4th Channel.
4
Bit 7: Feature Reports
Bit 6: Counter Read
Bits 5-2: XXXX
Bit 1: Update IO
Bit 0: LED State
5
Bits 7-4: 1001 (Start Continuous)
Bits 3-0: Bits for IO3 through IO0 States
6
AIINTMSB
7
AIINTLSB
Response
Byte #
Description
0
Bit 7-6: 11
Bit 5: Buffer Overflow if Backlog = 11111, Checksum Error if Backlog = 0
Bit 4: PGA Overvoltage
Bits 3-0: Bits for IO3 through IO0 States
1
Bits 7-5: Iteration Counter
Bits 4-0: Backlog/256
2
Bits 7-4: Most Significant Bits from 1st Channel
Bits 3-0: Most Significant Bits from 2nd Chanel
3
Least Significant Byte from 1st Channel
4
Least Significant Byte from 2nd Channel
5
Bits 7-4: Most Significant Bits from 3rd Channel
Bits 3-0: Most Significant Bits from 4th Chanel
6
Least Significant Byte from 3rd Channel
7
Least Significant Byte from 4th Channel
PGA Gain Setting(Differential Only) 0b000 = 1, 0b001 = 2, 0b010 = 4, 0b100 = 8, 0b101 = 10, 0b110 = 16, 0b111 = 20
51

Other manuals for LabJack U12