W5K_DI_GetModes

 

This function code is used to get the mode of contiguous D/I channels.

 

C/C++

int W5K_DI_GetModes(int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

WORD wMode[ ]);

 

Visual Basic

Declare Function W5K_DI_GetModes Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, wMode As Integer) As Long

 

Arguments:

hConnection

The handle for an I/O device's connection.

bytStartChannel

Specifies the starting channel.

bytCount

The number of channels to be gets.

wMode

An array that stores contiguous D/I channel's mode. wMode[0] represents the value of the starting channel. The values are:

0: D/I Mode

1: Count Mode

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.