E1K_AO_SetRanges

 

This function code is used to set the range for contiguous A/O channels.

 

C/C++

int E1K_AO_SetRanges( int hConnection,

BYTE bytStartChannel,

BYTE bytCount,

WORD wRange[ ]);

 

Visual Basic

Declare Function E1K_AO_SetRanges Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytStartChannel As Byte, ByVal bytCount As Byte, iRange 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 set.

wRange

An array that stores the contiguous A/O channel's range, wRange[0] represents the value of the starting channel. The values are:

0: 0-10 Vdc

1: 4-20 mA

Others_return Illegal Data Value

 

Return Value:

Succeed

MXIO_OK

Fail

Refer to Return Codes.