Function
Retrieves the maximum number of channels for the analog output. This function supports multi-process.
Format
Ret = AioGetAoMaxChannels ( Id , AoMaxChannels )
Parameters
Id
[ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the Device ID retrieved from AioInit function.
AoMaxChannels
[ C, C++ : short * ] [ Python : ctypes.POINTER(ctypes.c_short) ]
Specifies the address of the variable that stores the maximum number of
channels.
Return value
Ret [ C, C++ : long ] [ 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 |
13080 |
Pointer
to AoMaxChannels is NULL |
20002 |
Can
not use while by another device works |
Initial value
The maximum number of channels differs by the device that you use.
Remarks
If the device is in operation, the function cannot be performed.
Specifications based on devices
AIO-163202G-PE |
AoMaxChannels = 2 |
AIO-160802L-LPE |
AoMaxChannels = 2 |
DA16-16(LPCI)L |
AoMaxChannels = 16 |
DA16-8(LPCI)L |
AoMaxChannels = 8 |
AO-1604L-LPE |
AoMaxChannels = 4 |
AD12-16(PCI)EV |
AoMaxChannels = 1 |
DA12-16(PCI) |
AoMaxChannels = 16 |
AO-1604CI3-PCI |
AoMaxChannels = 4 |
AIO-160802AY-USB |
AoMaxChannels = 2 |
AIO-163202FX-USB |
AoMaxChannels = 2 |
AIO-121602LN-USB |
AoMaxChannels = 2 |
AO-1604LX-USB |
AoMaxChannels = 4 |
AO-1604VIN-USB |
AoMaxChannels = 4 |
CPSN-AO-1602LC |
AoMaxChannels = 2 |
CPI-AO-1602LC |
AoMaxChannels = 2 |
AIO-16256256-DEMO |
AoMaxChannels = 256 |
Example
Retrieves the maximum number of channels for the analog output.
C, C++ |
long
Ret; |
Python |
Ret
= ctypes.c_long() |