AO2K_GetRanges
This function code is used to get contiguous A/O channel's range.
C/C++
int AO2K_GetRanges( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wRange[ ]);
Visual Basic
Declare Function AO2K_GetRanges 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 be gets. |
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 0xff : disable Others_return Illegal Data Value |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |