« Close

Datasheets and User Guides

App Notes

Software & Driver

 

5.2.5.1 - AIN: IOType = 1

Table 5.2.5.1-1.

AIN, 3 Command Bytes: 
0 IOType = 1
1 Bits 4-0: Positive Channel
  Bit 6: LongSettling
  Bit 7: QuickSample
2 Negative Channel
   
2 Response Bytes: 
0 AIN LSB
1 AIN MSB

This IOType returns a single analog input reading.

Note: Do not use this IO type while streaming.

  • Positive Channel: 0-15 for AIN0-AIN15, 30 for temp sensor, or 31 for Vreg. Note that AIN0-AIN7 appear on FIO0-FIO7, and AIN8-AIN15 appear on EIO0-EIO7.
  • LongSettling: If this bit is set, additional settling time is added between the multiplexer configuration and the analog to digital conversion.
  • QuickSample: If this bit is set, a faster analog input conversion is done, at the expense of increased noise. If bits 6 & 7 are both set, then the entire byte is a channel number (for digital I/O, timers, and counters).
  • Negative Channel: 0-15 for AIN0-AIN15, 30 for Vref, or 31 for single-ended. Note that AIN0-AIN7 appear on FIO0-FIO7, and AIN8-AIN15 appear on EIO0-EIO7.
  • AIN LSB & MSB: Analog input reading is returned justified as a 16-bit value (always unsigned).

Support - Python U3 Get Feedback Example

LabJackPython example session

Automatically extracted from u3.py. Debugging turned on to show the bytes sent and received.