Yokogawa PC-Based MX100 User Manual

Page 583

Advertising
background image

12-19

IM MX190-01E

MX100 for Extended API

12

Communication Connection
rc = daqmx100.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).

Getting the Setup Data Collectively
rc = daqmx100.getItemAll();
Gets all items of the MX100 setup data collectively and stores in the setup data field.

Retrieval of the Setup Data by Item
realLen = (daqmx100.getClassMXItemConfig()).readItem(i,
strItem, BUFSIZ);
Retrieves the contents of item number “i” from the setup data field.

Writing the Setup Data by Item
rc = (daqmx100.getClassMXItemConfig()).writeItem(i, strItem);
Writes the contents of strItem to item number “i” of the setup data field.

Sending the Setup Data Collectively
rc = daqmx100.setItemAll();
Sends all items of the setup data to the MX100 collectively.

Comm. cut
rc = daqmx100.close();
Drops the connection.

12.3 Programming - MX100/Visual C++ -

Advertising