AI2K_SetRanges
This function code is used to set contiguous A/I channel's range.
C/C++
int AI2K_SetRanges( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wRange[ ]);
Visual Basic
Declare Function AI2K_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 be set. |
wRange |
An array that stores the contiguous A/I channel's range, wRange[0] represents the value of the starting channel. The values are: 00: +/-150mV 01: +/-500mV 02: +/-5V 03: +/-10V 04: 0-20mA 05: 4-20mA 06: 0-150mV 07: 0-500mV 08: 0-5V 09: 0-10V Others_return Illegal Data Value |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |