Cdaqhandler::sendline, Cdaqhandler::settimeout – Yokogawa PC-Based MX100 User Manual

Page 59

Advertising
background image

2-36

IM MX190-01E

CDAQHandler::sendLine

Syntax

virtual int sendLine(const char * strLine);

Parameters

strLine

Specify the string to be sent.

Description

Sends the specified string.

The line feed is added to the string before it is sent. Specify the string excluding the
line feed.

Return value

Returns an error number.
Error:

Not connected

Not connected.

Communication error

An error was detected in communications.

CDAQHandler::setTimeOut

Syntax

virtual int setTimeOut(int seconds);

Parameters

seconds

Specify the communication timeout value in units of seconds.

Description

Sets the transmission and reception timeout to the value specified by the parameter.
If a negative value is specified, the timeout is discarded.

The use of the timeout is not recommended.

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