
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-44
AI_ReadRaw
This function code is used to read the raw data value of a specific
analog input channel.
C/C++
Arguments
Return Value
int AI_ReadRaw ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
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.
bytChannel: The desired channel.
wValue: A pointer to raw data value of the desired
analog input channel.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Analog Input Commands for ioLogik E2000, R2000
AI2K_ReadMins
This function code is used to read the minimize values of
contiguous A/I channels.
C/C++
Arguments
Return Value
int AI2K_ReadMins ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
double dValue[ ]);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dValue: An array that stores the minimize values of
contiguous A/I channels; dValue[0] represents
the value of the starting channel. The unit is
VDC for the voltage module, and mA for the
current module.
Succeed MXIO_OK.
Fail R
f
r
R
n
Komentarze do niniejszej Instrukcji