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

Page 1039

Advertising
background image

19-45

IM MX190-01E

19

DARWIN for Extended API - Visual C++

CDAQDA100Reader::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.

Return value

Returns an error number.

Reference

getInstCh

CDAQDA100Reader::open

Syntax

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

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 instantaneous value loading port number.”

When initializing the data member for retrieval of the measured data and connection
is successful, channel information data is retrieved and stored.

The communication timeout is set to 3 minutes.

Return value

Returns an error number.

Reference

close measClear setTimeOut updateChInfo CDAQDARWIN::open

19.6 Details of the DARWIN Class

Advertising