DioDmSetTransferStartWait


Function

Sets the wait time for generating start. It is no need to execute this function usually.

Format

Ret = DioDmSetTransferStartWait ( Id , Time )

Parameters

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short]
Specify the device ID retrieved from DioInit.

Time [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short]
Specify the wait time in [ms]. The default is 10msec. Usually it is specified to 0 or 10.

Return Value

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.

The others (See also: Details of Error Code)

Initial Value

None

Remarks

Before the generating starts, to wait for the data in FIFO on the board to be transferred, 10msec is need by default. However, the wait might be unnecessary according to the data quantity and transfer rate etc. Please use this function when an error occurred while the DioDmTransferStart function is being performed.

See Also

DioDmTransferStart