Cdaqhandler::receiveremain, Cdaqhandler::send – Yokogawa PC-Based MX100 User Manual

Page 58

Advertising
background image

2-35

IM MX190-01E

MX100 -Visual C++

2

CDAQHandler::receiveRemain

Syntax

int receiveRemain(void);

Description

If the remaining size field is greater than 0, the amount of data that is equal to the
remaining size is received and discarded.

The remaining size field is set to 0.
If the remaining size field is 0 or less, the operation concludes successfully.

Return value

Returns an error number.

Reference

receive

CDAQHandler::send

Syntax

virtual int send(const unsigned char * bufData, int lenData);

Parameters

bufData

Specify the data to be sent using a byte array.

lenData

Specify the byte size of the data to be sent.

Description

Sends the amount of data to be sent specified by the parameter for the byte size.

Return value

Returns an error number.
Error:

Not connected

Not connected.

Communication error

An error was detected in communications.

2.4 Details of the MX100/DARWIN Common Class

Advertising