DioDmStop


Function

Starts sampling/generating.

Format

Ret = DioDmStop ( Id , Dir )

Parameters

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

Dir [C:unsigned long] [Python: ctypes.c_ulong]
Specify transfer direction.

Definition

Value

[Hex]

Description

DIODM_DIR_IN

0x01

Input

DIODM_DIR_OUT

0x02

Output

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.

The other errors: (See also: Error code details)

Initial Value

None

Remarks

With this function, if the start conditions are software start, transfer is executed immediately, and in the case of other conditions, transfer is started when the start conditions are met.
Input and output can be specified simultaneously for transfer start.
When more than one board are synchronously used, start the slave at first.

Example

C

Ret = DioDmStop( Id , DIODM_DIR_IN );
 

Python

Ret = cdio.DioDmStop( Id , cdio.DIODM_DIR_IN )
 

See Also

None