Cdaqda100::measinstch, Cdaqda100::open – Yokogawa PC-Based MX100 User Manual

Page 1023

Advertising
background image

19-29

IM MX190-01E

19

DARWIN for Extended API - Visual C++

CDAQDA100::measInstCh

Syntax

virtual int measInstCh(int chType = DAQDA100_CHTYPE_MEASALL,
int chNo = DAQDA100_CHNO_ALL);

Parameters

chType

Specify the channel type.

chNo

Specify the channel number.

Description

Gets the measured data of the specified channel. The specified data is stored in the

various channel information fields of the data member. If the channel type is set to
the constant for “Specify all measurement channel types,” all subunits are

processed. If the channel number is set to the constant for “Specify all channel
numbers,” all channels within the channel type are processed.

Updates the status if successful.

Return value

Returns an error number.

Error
Not support

Unsupported retrieve code type.

Reference

chNumMax getClassSysInfo getCode getInstChASCII
getInstChBINARY updateRenew CDAQDARWINSysInfo::isExist

CDAQDA100::open

Syntax

virtual int open(const char * strAddress, unsigned int
uiPort);

Parameters

strAddress

Specify the IP address as a string.

uiPort

Specify the port number.

Description

Connects to the device with the IP address and port number specified by the

parameters. The port number can be omitted. If omitted, it is set to the
communication constant, “DARWIN communication port number.”

When initializing the data member for retrieval of the measured data and connection
is successful, those items are retrieved and stored.

The communication timeout is set to 3 minutes.

Return value

Returns an error number.

Reference

close measClear setTimeOut updateAll CDAQDARWIN::open

19.6 Details of the DARWIN Class

Advertising