Cdaqmx::open, Cdaqmx::receiveblock – Yokogawa PC-Based MX100 User Manual
Page 79

2-56
IM MX190-01E
CDAQMX::open
Syntax
virtual int open(const char * strAddress, unsigned int uiPort
= DAQMX_COMMPORT);
Parameters
strAddress
Specify the IP address as a string.
uiPort
Specify the port number.
Description
Connects to the device with the IP address and port number specified by the
parameters.
The port number can be omitted. If omitted, it is set to the MX100 communication
port number.
Initializes the data member.
Executes the registry command. If execution fails, the connection is dropped.
Return value
Returns an error number.
Reference
clearAttr close registry
CDAQHandler::open
CDAQMX::receiveBlock
Syntax
int receiveBlock(unsigned char * pBlock, int lenBlock);
Parameters
pBlock
Specify the field where the block is to be stored using a byte array.
lenBlock
Specify the byte size of the block.
Description
Receives the specified block.
Updates the remaining size field.
Return value
Returns an error number.
Error:
Not data
The field size is not consistent.
Reference
receive
2.5 Details of the MX100 Class