Instruction manual
AMPDIO DRIVERS
Page 216
See Also AIOgetHWADCchanDiff
6.4.18.8 Query ADC Hardware Gain Settings — AIOgetHWADCchanGain
Gets the hardware gain settings for a group of ADC channels. This is only supported on
certain cards.
SUPPORTED IN VERSION 4.10 ONWARDS.
i = AIOgetHWADCchanGain (h, Group, pGains)
where h short: board handle as issued by the
registerBoardEx function.
Group short: ADC channel group.
pGains pointer to unsigned long: pointer to unsigned
long variable which will be set to channel gains
value which depends on the card type.
For PCI230 and PCI260:
bits 1 – 0: gain for channels 0 and 1
bits 3 – 2: gain for channels 2 and 3
bits 5 – 4: gain for channels 4 and 5
bits 7 – 6: gain for channels 6 and 7
bits 9 – 8: gain for channels 8 and 9
bits 11 –10: gain for channels 10 and 11
bits 13 – 12: gain for channels 12 and 13
bits 15 – 14: gain for channels 15 and 14
Value Unipolar range Bipolar range
0 0 – 20V* ±10V
1 0 – 10V ±5V
2 0 – 5V ±2.5V
3 0 – 2.5V ±1.25V
E. . Saturates at about 12V.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
AIOcountADCgroups
See Also AIOsetHWADCchanGain
6.4.18.9 Configure ADC Hardware Gain Settings — AIOsetHWADCchanGain
Sets the hardware gain for ADC channels in a group. This only has an affect on certain cards.
SUPPORTED IN VERSION 4.10 ONWARDS.
i = AIOsetHWADCchanGain (h, Group, ChMask, Gains)