Retrieves the channel sequence when the conversion is performed. This function can only be used for the following devices.
Ret = AioGetAiChannelSequence ( Id , AiSequence , AiChannel )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short ]
Specifies the ID retrieved from AioInit function.
AiSequence
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short ]
Specifies the conversion sequence of the channel.
0 |
First conversion channel |
1 |
Second conversion channel |
... |
... |
Maximum number of channels - 1 |
Last conversion channel |
AiChannel
[ VB.NET : Short ] [ C, C++ : short * ] [ C# : out short ] [ Python : ctypes.POINTER(ctypes.c_short) ]
Specifies the address of the variable that stores the channel that is retrieved
the conversion sequence.
Ret [ VB.NET : Integer ] [ C, C++ : long ] [ C# : int ] [ Python : ctypes.c_long ]
Return values |
Content |
0 |
Normality completion |
7 |
Execute AioResetDevice function because the device has recovered from standby mode |
10001 |
Invalid
Id was specified |
10002 |
AIO
driver can't be called |
11770 |
The
value of AiChannel is outside the designated range of the function |
11771 |
Pointer
to Sequence is NULL |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
20003 |
Can
not use because another process is using the device |
21770 |
The value of AiChannel is outside the designated range of the device being used |
For all devices, the conversion is performed in order of channel0, channel1, channel2 ...
If the device is in operation, the function cannot be performed.
Retrieves the channel of the conversion sequence 0.
VB.NET |
Dim Ret As Integer |
C, C++ |
long Ret; |
C# |
int Ret; |
Python |
Ret = ctypes.c_long() |