E1K_AI_GetChannelStatuses

 

This function code is used to get the AI channel status of ioLogik 1200 Module.

 

C/C++

int E1K_AI_GetChannelStatuses ( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

WORD wValue[ ]);

Visual Basic

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

 

Arguments:

hConnection

The handle for an I/O device connection.

bytStartChannel

Specifies the starting channel.

bytCount

The number of channels to be gets.

wValue

represents the value of the starting channel.

0: disabled,

1: enabled

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.