Yokogawa PC-Based MX100 User Manual

Page 34

Advertising
background image

2-11

IM MX190-01E

MX100 -Visual C++

2

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

Connect

Start the FIFO

Get the time

information

Disconnect

END

CDAQMX::close

CDAQMX::getTimeData

CDAQMX::startFIFO

CDAQMX::getFIFODataNo

CDAQMX::open

START

Get the data range

that can be retrieved

CDAQMX::talkFIFOData

Declare the retrieval

of the measured data

Last data

number?

Last data

number?

Get the

measured data

CDAQMX::getChData

CDAQMX::stopFIFO

Stop the FIFO

Communication Process
First, make a connection. After making the connection, the member functions

become available. As a termination procedure, disconnect the communication.

Note

If there is no access for approximately three minutes, the MX100 drops the
connection. Drop the connection if you are not accessing the MX100 for an extended
time. Make the connection only when necessary.

Communication Connection
open("192.168.1.12")
The IP address of the MX100 is specified.

This statement implicitly specifies the communication constant
DAQMX_COMMPORT (communication port number of the MX100).

Note

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

FIFO Start
startFIFO()
Starts the FIFO.

2.3 Programming - MX100/Visual C++ -

Advertising