E1K_DIO_SetIOModes

 

This function is used to set contiguous channel's DI/DO mode and will take effect after the device is restarted.

 

C/C++

int E1K_DIO_SetIOModes ( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

DWORD dwMode);

 

Visual Basic

Declare Function E1K_DIO_SetIOModes Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, ByVal nMode As Long) As Long

 

Arguments:

hConnection

A handle of a connection.

bytStartChannel

A handle of a connection.

bytCount

The number of channels to be set.

dwMode

A pointer that stores the contiguous channel's DI/DO mode; each bit holds for the mode of one channel.

0: DI mode

1: DO mode

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.