AioGetDemoAiStartExtTrigger


Function

This is a function that gets the status of the analog input start trigger of the demo device.

Format

Ret = AioGetDemoAiStartExtTrigger ( Id , Data )

Parameters

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

Data [ C, C++ : short * ] [ Python : ctypes.POINTER(ctypes.c_short) ]
Specifies the address of variable that stores the set data.

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.

28380

A driver inner error occurred

Remarks

This is a function dedicated to the demo device.

The initial value is 0 (OFF).
Please call AioSetDemoAiStartExtTrigger function when You want to modify the external trigger level for Analog Input Start.

 

Example

Gets the status of the analog input start trigger.

C, C++

long Ret;
short Data;
Ret = AioGetDemoAiStartExtTrigger ( Id , &Data );
 

Python

Ret = ctypes.c_long()
Data = ctypes.c_short()
Ret.value = caio.AioGetDemoAiStartExtTrigger ( Id , ctypes.byref(Data) )
 

See also

AioSetDemoAiStartExtTrigger