AioStartAo


Function

Starts DA conversion based on the condition settings.

Format

Ret = AioStartAo ( Id )

Parameters

Id [ VB.NET : Short ] [ C, C++ : short ] [ C# : short ] [ Python : ctypes.c_short ]
Specifies the ID retrieved from AioInit function.

Return value

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
Use the Id retrieved from AioInit to specify the Id in this function.

10002

AIO driver can't be called
At first, perform AioInit function.

20001

This function can't be used by this device

20002

Can not use while by another device works
To use this function, analog output operation must be stopped.

20003

Can not use because another process is using the device
When another process is using the device, all functions except for those that support multi-process can not be performed.

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 generatings (AioGetAoSamplingCount) or the transfer count (AioGetAoTransferCount) 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.

VB.NET

Dim Ret As Integer
Ret = AioStartAo ( Id )
 

C, C++

long Ret;
Ret = AioStartAo ( Id );
 

C#

int Ret;
Ret = aio.StartAo ( Id );
 

Python

Ret = ctypes.c_long()
Ret.value = caio.AioStartAo ( Id )
 

See also

AioStopAo AioSingleAo AioMultiAo