AO2K_SetRange
This function code is used to set the range for a specific A/O channel.
C/C++
int AO2K_SetRange( int hConnection,
BYTE bytChannel,
WORD wRange);
Visual Basic
Declare Function AO2K_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 |
Stores the specific A/O channel's range. The values are: 0: 0-10Vdc 1: 4-20mA Others_return Illegal Data Value |
Return Value:
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |