
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-50
AI2K_SetRange
This function code is used to set the range for a specific A/I
channel.
C/C++
Arguments
Return Value
int AI2K_SetRange ( int hConnection,
BYTE bytChannel,
WORD wRange);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
wRange: Stores the range of the desired A/I channel. The
values are:
00: ±150mV
01: ±500mV
02: ±5V
03: ±10V
04: 0-20mA
05: 4-20mA
Others: return Illegal Data Value
Succeed MXIO_OK.
Fail Refer to Return Codes.
Analog Output Commands
AO_Reads
This function code is used to read the values of contiguous analog
output channels.
C/C++
Arguments
Return Value
int AO_Reads ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
double dValue[ ]);
hConnection: The handle for an I/O connection.
bytSlot: Slot number of the I/O module, from 1 to 32.
This parameter is inactive for the ioLogik
E2000 and R2000.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dValue: An array that stores the values of contiguous
analog output channels. dValue[0] represents
the value of the starting channel. The unit is
Vdc for the voltage channel and mA for the
current channel.
Succeed MXIO_OK.
Kommentare zu diesen Handbüchern