Retrieves the maximum number of the counter channels. This function supports multi-process.
Ret = AioGetCntMaxChannels ( Id , CntMaxChannels )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the device ID retrieved from AioInit.
CntMaxChannels
[ 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 |
15260 |
Pointer
to CntMaxChannels is NULL |
The maximum number of channels is different
according to device used.
CntMaxChannels becomes 0 for the device without counter functionality.
If the device is in operation, the function cannot be performed.
AIO-163202G-PE |
CntMaxChannels = 2, channel is shared with timer functionality. |
AI-1664UG-PE |
CntMaxChannels = 1, channel is shared with timer functionality. |
AIO-160802L-LPE |
CntMaxChannels = 1, channel is shared with timer functionality. |
AI-1616L-LPE |
CntMaxChannels = 1, channel is shared with timer functionality. |
AO-1604L-LPE |
CntMaxChannels = 1, channel is shared with timer functionality. |
AIO-163202FX-USB |
CntMaxChannels = 2 |
AI-1664LAX-USB |
CntMaxChannels = 1, channel is shared with timer functionality. |
AIO-121602LN-USB |
CntMaxChannels = 1 |
Retrieves the maximum number of counter channels.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |