Function
Sets the suspension number for the stop condition.
Format
Ret = DioDmSetStopNum ( Id , Dir , StopNum )
Parameters
Id
[C:short] [Python: ctypes.c_short]
Specifies the device ID retrieved from DioInit.
Dir
[C:unsigned long] [Python: ctypes.c_ulong]
Set Transfer direction.
Definition |
Value [Dec] |
Description |
DIODM_DIR_IN |
1 |
Input |
DIODM_DIR_OUT |
2 |
Output |
StopNum
[C:unsigned long] [Python: ctypes.c_ulong]
Specify a stop number
Device Type |
Available range |
DIO-32DM3-PE |
1 <= StopNum <= 536,870,912(20000000H) |
PIO-32DM(PCI) |
1 <= StopNum <= 16,777,215(FFFFFFH) |
Return Value
Ret [C:long] [Python: ctypes.c_long]
Definition |
Value [Dec] |
Description |
DIO_ERR_SUCCESS |
0 |
Normal complete |
DIO_ERR_DLL_INVALID_ID |
10001 |
Invalid ID is specified. |
DIO_ERR_DLL_CALL_DRIVER |
10002 |
Driver cannot be called (failed in ioctl). |
DIO_ERR_SYS_DIRECTION |
50000 |
I/O direction is outside of the setting range. |
DIO_ERR_SYS_STOP_NUM |
50007 |
Stop number is outside of the setting range. |
The other errors: (See also: Error code details)
Initial Value
The default is 1000.
Remarks
If number suspension is specified as the stop condition, it must be set.
Example
C |
Ret = DioDmSetStopNum(
Id , DIODM_DIR_IN , 1000 ); |
Python |
Ret = cdio.DioDmSetStopNum(
Id , cdio.DIODM_DIR_IN , 1000 ) |
See Also