Converts the more than one channel one time, the conversion data are returned in voltage/current. This function supports multi-process.
Ret = AioMultiAiEx ( Id , AiChannels , AiData )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AiChannels
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the number of channels to be converted.
AiData
[ VB.NET : Single() ] [ C, C++ : float * ] [ C# : float[] ] [ Python :
ctypes.POINTER(ctypes.c_float) ]
Specifies the address of the array that stores the converted data. The
converted data are stored in voltage or current value.
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 |
11860 |
The
value of AiChannels is outside the designated range of the function |
11861 |
Pointer
to AiData is NULL |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
21861 |
The number of conversion channels was exceeded. It is converted on the maximum channel |
Before this function is executed, you must
set the input range by using AioSetAiRange
or AioSetAiRangeAll function.
This function cannot be used on devices without the analog input function.
If the device is in operation, the function cannot be performed.
For the device whose channel conversion sequence
can be set,
you can use function AioSetAiChannelSequence to change the conversion sequence.
Converts from channel 0 to channel 7 one time.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |