Function
DA Converts the more than one channel one time, the conversion data are specified in voltage or current.
Format
Ret = AioMultiAoEx ( Id , AoChannels , AoData )
Parameter
Id [VB.NET:Short C,C++:short C#:short]
Specifies the device ID retrieved from AioInit.
AoChannels [VB.NET:Short C,C++:short C#:short]
Specifies the number of channels to convert.(Range is 1 to maximum channels of device)
AoData [VB.NET:Single() C,C++:float * C#:float[]]
Specifies the address of the array that stores the output data. Please specify the data in voltage or current.
The available value differs by the device.
Return Value
Ret [VB.NET:Integer C,C++:long C#:int]
Define |
Value |
Description |
AIO_ERR_SUCCESS |
0 |
Normality completion |
AIO_ERR_DLL_INVALID_ID |
10001 |
Invalid ID was specified. |
AIO_ERR_DLL_TIMEOUT |
28004 |
Communication time out occurred. |
AIO_ERR_ACCESS_RIGHT |
28003 |
Access rights error. |
AIO_ERR_NOT_START |
28002 |
Device dose not start. |
AIO_ERR_AO_CHANNELS |
13020 |
The value of AoChannels is outside the designated range of the function. |
AIO_ERR_PTR_AO_DATA |
13021 |
Pointer to AoData is NULL. |
AIO_ERR_SYS_NOT_SUPPORTED |
20001 |
This function can't be used by this device. |
AIO_ERR_DA_ERROR |
23001 |
DA conversion error occurred. |
AIO_ERR_AO_CHANNEL_NUM_OVER |
23021 |
The number of conversion channels was exceeded. It is converted on the maximum channels. |
See also: Error Code Details
Remark
DA Converts the more than one channel one time, the conversion data are specified in voltage or current.
Before this function is executed, you must set the output range by using AioSetAoRangeAll function.
This function cannot be used on devices without the analog output function.
Example
Converts from channel 0 to channel 15 one time.
VB.NET Ret = AioMultiAoEx ( Id , 16 , AoData )
C,C++ Ret = AioMultiAoEx ( Id , 16 , &AoData[0] );
C# Ret = AIO.ccapaio.AioMultiAoEx ( Id , 16 , AoData );
See Also