Function
This is a function that sets the analog input start trigger of the demo device.
Format
Ret = AioSetDemoAiStartExtTrigger ( 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 |
10002 |
AIO
driver can't be called |
18141 |
Pointer to Data is NULL |
28140 |
The value of Data is outside the designated range of the device being used |
28141 |
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 trigger level for Analog Input Start by calling
AioGetDemoAiStartExtTrigger
function.
And also, you can confirm the current AI
start condition by calling AioGetAiStartTrigger
function.
Please indicate "Rising edge" / "Falling edge" by calling
AioSetAiStarTrigger
function before you use this function for Analog Input.
Example
Sets the analog input start trigger to 1 (high level).
C, C++ |
long
Ret; |
Python |
Ret
= ctypes.c_long() |
See also
AioGetDemoAiStartExtTrigger, AioGetAiStartTrigger, AioSetAiStarTrigger