
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-51
AO_Writes
This function code is used to write the values of contiguous analog
output channels.
C/C++
Arguments
Return Value
int AO_Writes ( 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 write.
dValue: An array that stores the values of contiguous
channel outputs. 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.
Fail Refer to Return Codes.
AO_Read
This function code is used to read the value for a specific analog
output channel.
C/C++
Arguments
Return Value
int AO_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
output channel. The unit is VDC for the voltage
channel and mA for the current channel.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Komentáře k této Příručce