Cdaqdarwin::checkack, Cdaqdarwin::compute – Yokogawa PC-Based MX100 User Manual

Page 414

Advertising
background image

7-16

IM MX190-01E

CDAQDARWIN::checkAck

Syntax

int checkAck(const char * strAck, int lenAck);

Parameters

strAck

Specify the response using a string.

lenAck

Specify the byte size of the response.

Description

Checks the string specified by the parameter as a response and returns the result.

Return value

Returns an error number.

Error:
Success

Responds with “processing executed successfully.”

Commands are not processed successfully

Responds with “processing not executed successfully.”

Not acknowledge

No response.

CDAQDARWIN::compute

Syntax

int compute(int iCompute);

Parameters

iCompute

Specify the computation.

Description

Executes the specified computation.

This function executes the EX command of the communication interface.
It creates and sends the command and receives the response.

It is only valid with the optional computation function, or when the pulse module is
installed.

Return value

Returns an error number.

Reference

runCommand

7.4 Details of the DARWIN Class

Advertising