Set the analog input range by using function AioSetAiRange, AioSetAiRangeAll.
Set the optimum input/output range according to the input signal type (voltage, current) and the upper/lower limit of the signal.
For example, if the range is -10 to 10V with a 12-bit resolution device, the minimum unit of input is 20/4096, which is about 5 mV. If the range is -5 to 5V, the minimum unit is about 2.5 mV, which means that you can input with double precision. Therefore, when the range of the used signal is within -5 to 5V, it is better to set the range to -5 to 5V.
The input range setting depends on the devices.
1. Set by JUMPER on devices
2. Set by software
3. Set by JUMPER on device and software
Please refer to [Specifications based on devices] in function AioSetAiRange, AioSetAiRangeAll for setting the input range of your device.
Use function AioSetAiRange.
Ret = AioSetAiRange ( Id , AiChannel , AiRange )
In AiChannel, specify the channel for setting range. Since channels are counted like 0, 1, 2, ..., for example, if the number of analog input channels is 4, the channel that can be specified is 0, 1, 2, 3.
In AiRange, specify the analog input range.
Use function AioSetAiRangeAll.
Ret = AioSetAiRangeAll ( Id , AiRange )
In AiRange, specify the analog input range.