Function
Starts DA conversion based on the condition settings.
Format
Ret = AioStartAo ( Id )
Parameters
Id
[ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the Device ID retrieved from AioInit function.
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 |
20001 |
This function can't be used by this device |
20002 |
Can
not use while by another device works |
20003 |
Can
not use because another process is using the device |
23320 |
Data aren't established, or memory can't be secured |
23321 |
Data aren't established |
23326 |
A user buffer isn't set up |
Remarks
When this
function is executed, DA conversion is started based on the set condition.
The generating clock period error and DA conversion error are automatically
reset, but the other state and status aren't reset.
The device action stops when all of output is completed on the setting condition.
This function
cannot be used on devices without the analog output function.
This function cannot be executed if the device is in operation.
If external clock is specified by function
AioSetAoClockType, by executing this function, the number of generating
(AioGetAoSamplingCount) will increase by 1.
This is because, even if one data has been sent to DA converter by the
gate open, the actual output will not performed until an external trigger
is input.
Example
Start DA conversion.
C, C++ |
long
Ret; |
Python |
Ret
= ctypes.c_long() |
See also
AioStopAo AioSingleAo AioMultiAo