AI2K_SetRange
This function code is used to set the range for a specific A/I channel.
C/C++
int AI2K_SetRange( int hConnection,
BYTE bytChannel,
WORD wRange);
Visual Basic
Declare Function AI2K_SetRange Lib "MXIO.dll" (ByVal hConnection As Long, ByVal bytChannel As Byte, ByVal iRange As integer) As Long
Arguments:
hConnection |
The handle for an I/O device connection. |
bytChannel |
The specific channel 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. |