Retrieves the maximum number of channels for the analog input. This function supports multi-process.
Ret = AioGetAiMaxChannels ( Id , AiMaxChannels )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AiMaxChannels
[ VB.NET : Short ] [ C, C++ : short * ] [ C# : out short ] [ Python :
ctypes.POINTER(ctypes.c_short) ]
Specifies the address of the variable that stores the maximum number of
channels.
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 |
11720 |
Pointer
to AiMaxChannels is NULL |
20002 |
Can
not use while by another device works |
The maximum number of channels differs by
the device that you use.
And, it changes depending on the analog input method (Single-end input
or Differential input) and whether or not the multiplexer is used.
If the device without the analog input functionality, AiMaxChannels = 0.
If the device is in operation, the function cannot be performed.
AI-1204Z-PE |
AiMaxChannels = 4 is fixed |
AIO-163202G-PE |
Initial value is AiMaxChannels = 32, it is automatically changed by the settings of analog input method. |
AI-1664UG-PE |
Initial value is AiMaxChannels = 64, it is automatically changed by the settings of analog input method. |
AIO-160802L-LPE |
AiMaxChannels = 8 is fixed |
AD16-64(LPCI)LA |
Initial value is AiMaxChannels = 64, It is automatic changed by the settings of analog input method. |
AI-1616L-LPE |
AiMaxChannels = 16 is fixed |
AD12-16(PCI)EV |
It is automatic decided by the multiplexer or without multiplexer, and the JP settings of the analog input method. |
AD12-64(PCI) |
Initial value is AiMaxChannels = 64, It is automatic changed by the settings of analog input method |
AD12-16(PCI) |
Initial value is AiMaxChannels = 16, It is automatic changed by the settings of analog input method. |
AI-1604CI2-PCI |
AiMaxChannels = 4 is fixed |
AI-1608AY-USB |
AiMaxChannels = 8 is fixed |
AIO-163202FX-USB |
Initial value is AiMaxChannels = 32, it is automatically changed by the settings of analog input method. |
DEMO DEVICE |
AiMaxChannels = 256 is fixed |
AI-1664LAX-USB |
Initial value is AiMaxChannels = 64, It is automatic changed by the settings of analog input method. |
AIO-121602LN-USB |
Initial value is AiMaxChannels = 16, It is automatic changed by the settings of analog input method. |
AIO-120802LN-USB |
Initial value is AiMaxChannels = 8, It is automatic changed by the settings of analog input method. |
AI-1608VIN-USB |
AiMaxChannels = 8 is fixed |
AI-1004LY-WQ |
AiMaxChannels = 4 is fixed |
CPSN-AI-1208LI |
Initial value is AiMaxChannels = 8, It is automatic changed by the settings of analog input method. |
Retrieves the maximum number of channels for the analog input.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |
AioSetAiChannels AioGetAiChannels