
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-61
AO2K_SetPowerOnValues
This function code is used to set the power on values of
contiguous A/O channels.
C/C++
Arguments
Return Value
int AO2K_SetPowerOnValues ( 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 set.
dValue: An array that stores the power on valuse for the
contiguous A/O 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.
Fail Refer to Return Codes.
AO2K_GetPowerOnValue
This function code is used to get the power on value for a specific
channel.
C/C++
Arguments
Return Value
int AO2K_GetPowerOnValue ( int hConnection,
BYTE bytChannel,
double * dValue);
hConnection: The handle for an I/O connection.
bytChannel: The desired channel.
dValue: A pointer to the power on value for the desired
A/O channel. The unit is Vdc for the voltage
channel and mA for the current channel.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
AO2K_SetPowerOnValue
This function code is used to set the power on value for a specific
channel.
C/C++
Arguments
Return Value
int AO2K_SetPowerOnValue ( int hConnection,
BYTE bytChannel,
double dValue);
hConnection: The handle for an I/O server connection.
bytChannel: The desired channel.
dValue: Stores the power on value for the desired A/O
channel. The unit is Vdc for the voltage
channel and mA for the current channel.
Succeed MXIO_OK.
Comentarios a estos manuales