AO2K_GetRange

 

This function code is used to get the range for a specific A/O channel.

 

C/C++

int AO2K_GetRange( int hConnection,

BYTE bytChannel,

WORD * wRange);

 

Visual Basic

Declare Function AO2K_GetRange Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, iRange As integer) As Long

 

Arguments:

hConnection

The handle for an I/O device connection.

bytChannel

The specific channel to be get.

wRange

A point that stores the specific A/O channel's range. The values are:

0: 0-10Vdc

1: 4-20mA

0xff : disable

Others_return Illegal Data Value

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.