Skip to main content
Skip table of contents

AIN24: IOType = 2 (U6 Only)

AIN24, 4 Command Bytes: 

0

IOType=2

1

PositiveChannel

2

Bits 0-3: ResolutionIndex

 

Bits 4-7: GainIndex

3

Bits 0-2: SettlingFactor

 

Bit 7: Differential

 

 

3 Response Bytes: 

0

AIN LSB

1

AIN Bits 8-15

2

AIN MSB

This IOType returns a single analog input reading. If using the autorange feature, the AIN24AR IOType in the following Section should be used instead.

Note: Do not call this IO type while streaming.

  • PositiveChannel: 0-143 for AIN0-AIN143. 14 is the internal temperature sensor and 15 is internal GND.

  • ResolutionIndex: 0=default, 1-8 for high-speed ADC, 9-12 for high-res ADC on U6-Pro.

  • GainIndex: 0=x1, 1=x10, 2=x100, 3=x1000.

  • SettlingFactor: 0=Auto, 1=20us, 2=50us, 3=100us, 4=200us, 5=500us, 6=1ms, 7=2ms, 8=5ms, 9=10ms. This is the time between when the muxes are changed and the reading is sampled. "Auto" ensures enough settling for any gain and resolution with source impedances less than at least 1 kohms.

  • Differential: If this bit is set, a differential reading is done where the negative channel is PositiveChannel+1.

  • AIN bytes: Analog input reading is returned as a 24-bit value (always unsigned).

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.