Sets the number of channels for the analog input by function AioSetAiChannels.
Ret = AioSetAiChannels ( Id , AiChannels )
In AiChannels, specify the number of channels
for analog input.
The order of channels to be converted is based on the setting of channel
conversion sequence.
The number of channels that will be eventually converted is determined
by this function.
The following table shows the relationship between AiChannels and the channel actually converted, with the default channel conversion sequence.
AiChannels |
Channel to be converted |
1 |
0 |
2 |
0, 1 |
3 |
0, 1, 2 |
: |
: |
* When using AioSetAiChannels with Z-series devices such as AI-1204Z-PCI,
it is not affected by the setting of AioSetAiChannel function,
the continuous specified channels from 0ch is the conversion target channels.
Please use either AioSetAiChannels function or AioSetAiChannel function
depending on the purpose.
For Z-series devices such as AI-1204Z-PCI, you can set the channel to use
individually.
Set the channel to use for analog input by function AioSetAiChannel.
Ret = AioSetAiChannel ( Id , AiChannel, Enabled )
In AiChannel, specify the channel.
In Enabled, specify whether or not to perform analog input.
The table below shows the setting value of Enabled.
0 |
Not use the channel specified by AiChannel |
1 |
Use the channel specified by AiChannel |
The setting of conversion channel is based
on the setting of channel whether to be used.
The channel that will be eventually converted is determined by this function.