Cdaqhandler class, Public members – Yokogawa PC-Based MX100 User Manual

Page 51

Advertising
background image

2-28

IM MX190-01E

CDAQHandler Class

This class is a base class of the handler. It provides communication functions.
The communication format is TCP/IP. The communication is controlled using the

communication descriptor. The communication descriptor is stored in the
communication descriptor field of the data member using a pointer to the general

type. The communication descriptor is constructed when the connection is made
and destructed when the connection is dropped.

To change the communication format, create an inheritance class and override all
communication member functions.

The data acquisition function is defined so that it can be called without knowing the
model. However, this class cannot be used with only the definition. It must be

overridden with the inheritance class before being implemented.
A function is provided that checks whether the instance has inherited this class.

You can override with an inheritance class.

Public Members

Construct/Destruct

CDAQHandler

Constructs an object.

~CDAQHandler

Destructs an object.

Communication Functions

open

Establishes a connection.

close

Drops the connection.

sendLine

Sends string data.

receiveLine

Receives string data by lines.

setTimeOut

Sets the communication timeout (setting of the

communication timeout is not recommended (see
section 2.2)).

Data Retrieval Functions

getData

Gets the measured data.

getChannel

Gets the channel information data.

Utilities

getVersionAPI

Gets the version number of this API.

getRevisionAPI

Gets the revision number of this API.

getErrorMessage

Gets the error message string

getMaxLenErrorMessage

Gets the maximum length of the error message

string.

isObject

Checks an object.

2.4 Details of the MX100/DARWIN Common Class

Advertising