Error processing – Yokogawa PC-Based MX100 User Manual
Page 410
7-12
IM MX190-01E
Description
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.
runCommand(line)
Sends the message and receives the response. The number of bytes of the
message is not specified (omitted). This member function adds a terminator to the
message and sends it.
sendTrigger()
Sends a trigger (device trigger).
Designation of System Configuration Output Format
sendLine("CF0"
Sends the CF0 communication function command (specifies the module information
that has been configured for the system). This member function adds a terminator to
the message and sends it.
Data Retrieval
receiveLine(line, BUFSIZ, &len)
Gets the system configuration data line by line. The program ends when an end
mark (E) is returned.
Note
The receiveLine member function simply receives the data. The user must write
statements for determining the end of the data.
Error Processing
• Most member functions return the result of the function process using an error
number.
• The member function getErrorMessage can be used to get the error message
string corresponding to the error number. The member function
getMaxLenErrorMessage can be used to get the maximum length of the error
message string.
7.3 Programming - DARWIN/Visual C ++ -