AioSetDemoAoClockExtTrigger


Function

This is a function that sets the analog output external clock of the demo device.

Format

Ret = AioSetDemoAoClockExtTrigger ( Id , Data )

Parameters

Id [ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the device ID retrieved from AioInit.

Data [ C, C++ : short ] [ Python : ctypes.c_short ]
Specifies the data to be set.

0

OFF

1

ON

Return values

Ret [ C, C++ : long ] [ Python : ctypes.c_long ]

Return values

Content

0

Normality completion

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.

18341

Pointer to Data is NULL

28340

The value of Data is outside the designated range of the device being used

28341

A driver inner error occurred

Remarks

This is a function dedicated to the demo device.

The initial value is 0 (OFF).
You can confirm the external clock level for Analog Output by calling AioGetDemoAoClockExtTrigger function.

And also, you can confirm the current clock type by calling AioGetAoClockType function.
Please indicate "External Clock" by calling AioSetAoClockType function before you use this function for Analog Output.

 

Example

Sets the analog output external clock to 1 (high level).

C, C++

long Ret;
Ret = AioSetDemoAoClockExtTrigger ( Id , 1 );
 

Python

Ret = ctypes.c_long()
Ret.value = caio.AioSetDemoAoClockExtTrigger ( Id , 1 )
 

See also

AioGetDemoAoClockExtTrigger, AioGetAoClockType, AioSetAoClockType