For simple analog input such as performing analog input of specified channel or multiple channels only once, it is convenient to use an appropriative function.
To analog input to a single (specified) channel, use function AioSingleAi AioSingleAiEx .
To analog input to multi (multiple) channels, use function AioMultiAi AioMultiAiEx .
These functions can be used with the following functions.
- Set the analog input method
AioSetAiInputMethod
- Set the channel sequence for conversion
AioSetAiChannelSequence
- Set the analog input range
AioSetAiRange AioSetAiRangeAll
For other analog input setting functions, it is not necessary to use them together with function AioSingleAi and AioMultiAi.
The processing flow of simple analog input is a follows.
Init processing
Channel conversion sequence, analog input method, set range
Analog input
Exit processing
The simple analog input functions have limitations on usage. Please refer to FAQ -> [How to use simple functions and continuous functions at the same time].