Yokogawa PC-Based MX100 User Manual

Page 405

Advertising
background image

7-7

IM MX190-01E

DARWIN - Visual C++ -

7

Flow of the Process
The flow chart shown below omits the declaration section.

Last channel?

Connect

Declare the retrieval

of the measured data

Get the measured data

channel by channel

Disconnect

END

CDAQDARWIN::close

CDAQDARWIN::getChDataByBinary

CDAQDARWIN::talkDataByBinary

CDAQDARWIN::open

START

Communication Process

First, make a connection. After making the connection, the member functions
become available. As a termination procedure, disconnect the communication.

Communication Connection
open("192.168.1.11")
The IP address of the DARWIN is specified. The communication report specifies the

communication constant “DAQDARWIN report number.”

Note

Communication can also be made when constructing the class. Connection is dropped
when the class is destructed.

Talker
talkDataByBinary(0, 1, 0, 2, datetime)
Sends the retrieval request of the measured data of channels 1 and 2 of subunit

number 0 and retrieves the time information (declares the retrieval of the measured
data).

Retrieval of the Measured Data
getChDataByBinary(datainfo, &flag)
Gets the measured data channel by channel. It is repeated up to the specified
channel. The end is determined by the flag status of “end data.”.

Communication Disconnection
close()
Drops the connection.

7.3 Programming - DARWIN/Visual C ++ -

Advertising