Yokogawa PC-Based MX100 User Manual

Page 487

Advertising
background image

8-13

IM MX190-01E

DARWIN - Visual C -

8

//disconnect
rc = closeDARWIN(comm);
#ifdef WIN32
FreeLibrary(pDll);
#endif
return rc;
}
//////////////////////////////////////////////////////////////

Description

Load Library Statement

The load library statement is from #ifdef WIN32 to #endif //WIN32.A callback type
(such as DLLOPENDARWIN) is used.

Talker
sprintf(line, "TS%d" DAQDARWIN_TALK_SYSINFODATA)
Stores the TS5 (declares the retrieval of the system configuration data) command
message of the DARWIN communication function to line.

The constant “system configuration data output”is used to specify the output of the
system configuration data.

runCommandDARWIN(comm, line)
Sends the message and receives the response. This member adds a terminator to
the message and sends it.

sendTriggerDARWIN(comm)
Sends a trigger (device trigger).

Designation of System Configuration Output Format
sendLineDARWIN(comm, "CF0"
Sends the CF0 communication function command (specify the module information

that has been configured for the system). This member adds a terminator to the
message and sends it.

Data Retrieval
receiveLineDARWIN(comm, line, BUFSIZ, &len)
Gets the system configuration data line by line. The program ends when an end

mark (E) is returned.

Note

The receiveLine function simply receives the data. The user must write statements for
determining the end of the data.

8.2 Programming - DARWIN/Visual C -

Advertising