2cdaqmx::runbalance, Cdaqmx::runcommand – Yokogawa PC-Based MX100 User Manual
Page 82
![background image](/manuals/360310/82/background.png)
2-59
IM MX190-01E
MX100 -Visual C++
2
CDAQMX::runBalance
Syntax
int runBalance(CDAQMXBalanceResult & cMXBalanceResult);
Parameters
cMXBalanceResult
Specify the destination where the initial balance result is to
be returned.
Description
Executes initial balancing.
Stores the execution result, initial balance result, and initial balance value in the
specified return destination.
Execution takes place only on channels specified as valid.
The FIFO stops. If auto control is enabled, the FIFO starts after the function
completes successfully.
The response to this function may take five seconds or longer.
Return value
Returns an error number.
Reference
getNo getPacketVersion getUserTime runCommand startFIFO
stopFIFO CDAQMXBalanceResult::getBalanceValid
CDAQMXBalanceResult::setBalance
CDAQMXBalanceResult::setResult
CDAQMX::runCommand
Syntax
virtual int runCommand(unsigned char * reqBuf, int lenReq,
unsigned char * ackBuf, int lenAck);
Parameters
reqBuf
Specify the request packet using a byte array.
lenReq
Specify the byte size of the request packet.
ackBuf
Specify the field where the response packet is to be stored using a
byte array.
lenAck
Specify the byte size of the response packet.
Description
Sends the specified request packet and receives the response packet. The
response packet is stored in the specified field.
Return value
Returns an error number.
Error:
Not acknowledgeNo response was generated for the request.
Not support
The request packets were incorrect.
Not data
The response packet field is insufficient.
Reference
receivePacket sendPacket
2.5 Details of the MX100 Class