Sets the stop condition for sampling/generating.
Ret = DioDmSetStopTrigger ( Id , Direction , Stop )
Id
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Specify the device ID retrieved from DioInit.
Direction
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Set the transfer direction.
Definition |
Value [Dec] |
Description |
DIODM_DIR_IN |
1 |
Input |
DIODM_DIR_OUT |
2 |
Output |
Stop
[ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short
]
Set the stop condition.
Definition |
Value [Dec] |
Description |
DIODM_STOP_SOFT |
1 |
Software stop |
DIODM_STOP_EXT_RISE |
2 |
Rising edge of external trigger |
DIODM_STOP_EXT_FALL |
3 |
Falling edge of external trigger |
DIODM_STOP_NUM |
4 |
Transfer completed with specified number |
DIODM_STOP_EXTSIG_1 |
5 |
SC connector EXTSIG1 |
DIODM_STOP_EXTSIG_2 |
6 |
SC connector EXTSIG2 |
DIODM_STOP_EXTSIG_3 |
7 |
SC connector EXTSIG3 |
EXTSIG1, EXTSIG2 and EXTSIG3 are only valid for the slave.
Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
Definition |
Value [Dec] |
Description |
DIO_ERR_SUCCESS |
0 |
Normal completed. |
DIO_ERR_SYS_RECOVERED_FROM_STANDBY |
7 |
Execute DioResetDevice function because the device has recovered from standby mode. |
DIO_ERR_DLL_INVALID_ID |
10001 |
Invalid ID specified. |
DIO_ERR_DLL_CALL_DRIVER |
10002 |
Not call the driver (Failure on DEVICE I/O CONTROL). |
DIO_ERR_SYS_NOT_SUPPORTED |
20001 |
This board couldn't use this function. |
DIO_ERR_SYS_IODIRECTION |
20500 |
Direction value is out of range. |
DIO_ERR_SYS_STOP |
21005 |
Stop conditions are outside the setting range. |
The others (See also: Details of Error Code)
The default is software stop.
It is necessary to set the stop condition to make the application operation regular. The software stop (DioDmStop) is valid whichever stop condition is set.
Sets software stop for input transfer.
VB.NET |
Dim Ret As Integer |
C, C++ |
long Ret; |
C# |
int Ret; |
Python |
Ret = ctypes.c_long() |