DA Converts the more than one channel one time, the conversion data are specified in binary value. This function supports multi-process.
Ret = AioMultiAo ( Id , AoChannels , AoData )
Id
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the ID retrieved from AioInit function.
AoChannels
[ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short
]
Specifies the number of channels to be converted.
AoData
[ VB.NET : Integer() ] [ C, C++ : long * ] [ C# : int[] ] [ Python : ctypes.POINTER(ctypes.c_long)
]
Specifies the address of the array that stores the output data. Please
specify the data in binary value.
The available value differs by the device.
Resolution of device is 12 bit |
0 to 4095 |
Resolution of device is 16 bit |
0 to 65535 |
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 |
13020 |
The
value of AoChannels is outside the designated range of the function |
13021 |
Pointer
to AoData is NULL |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
23021 |
The number of conversion channels was exceeded. It is converted on the maximum channels |
23022 |
Specify data to establish in AoData in the range of 0 to 4095 |
23023 |
Specify data to establish in AoData in the range of 0 to 65535 |
If a device has the synchronous output function, it outputs the set channels at the same time. If the device have no the synchronous output function, it transparently (one after another output) outputs to the channels in the order of channel 0, 1, 2 and so on.
This function cannot be used on devices without
the analog output function.
If the device is in operation, the function cannot be performed.
It outputs binary data 2048 to channel 0 to channel 7.
VB.NET |
Dim
Ret As Integer |
C, C++ |
long
Ret; |
C# |
int
Ret; |
Python |
Ret
= ctypes.c_long() |