Cdaqhandler::receive, Cdaqhandler::receiveline – Yokogawa PC-Based MX100 User Manual
Page 57

2-34
IM MX190-01E
CDAQHandler::receive
Syntax
virtual int receive(unsigned char * bufData, int maxData, int
* lenData);
Parameters
bufData
Specify the field where the received data is to be stored using a
byte array.
maxData
Specify the byte size of the received data.
lenData
Specify the destination where the byte size of the actual data
received is returned.
Description
Stores the received data in the field specified by the parameter up to the specified
byte size.
Returns the byte size of the actual data received if the return destination is specified.
Return value
Returns an error number.
Error:
Not connected
Not connected.
Communication error
An error was detected in communications.
CDAQHandler::receiveLine
Syntax
virtual int receiveLine(char * strLine, int maxLine, int *
lenLine);
Parameters
strLine
Specify the field where the received string is to be stored.
maxLine
Specify the byte size of the field where the received string is to be
stored.
lenLine
Specify the destination where the byte size of the actual string
received is returned.
Description
Stores the received string to the field specified by the parameter until a line feed is
detected or up to the specified byte size. Stores the received string excluding line
feeds. Returns the byte size of the actual data received and stored if the return
destination is specified.
Return value
Returns an error number.
Error:
Not connected
Not connected.
Communication Errors
An error was detected in communications.
2.4 Details of the MX100/DARWIN Common Class