
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-43
AI_Read
This function code is used to read the value of a specific analog
input channel.
C/C++
Arguments
Return Value
int AI_Read ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
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.
bytChannel: The desired channel.
dValue: A pointer to the value of the desired analog
input channel. The unit is VDC for the voltage
module, and mA for the current module.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
AI_ReadRaws
This function code is used to read the raw data values of
contiguous analog input values.
C/C++
Arguments
Return Value
int AI_ReadRaws ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
WORD wValue[ ]);
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.
wValue: An array that stores the raw data values of the
contiguous A/I channels; wValue[0] represents
the value of the starting channel.
Succeed MXIO_OK.
Fail R
f
r
R
n
Komentáře k této Příručce