2cdaqmx::setmxconfig, Cdaqmx::setoutput – Yokogawa PC-Based MX100 User Manual

Page 88

Advertising
background image

2-65

IM MX190-01E

MX100 -Visual C++

2

CDAQMX::setMXConfig

Syntax

int setMXConfig(CDAQMXConfig & cMXConfig);

Parameters

cMXConfig

Specify the setup data.

Description

Sets basic settings on the device.
The input data is validated before it is sent.

The FIFO stops. If auto control is enabled, the FIFO starts after the function
completes successfully.

Packets differ with the style number of the main unit.
The setting item number of the validation results are stored in the setting item

number field of the data member.

Return value

Returns an error number.

Error:
Not data

The input data is not valid.

Not support

Unsupported version.

Reference

getNo getPacketVersion getUserTime runCommand startFIFO
stopFIFO CDAQMXConfig::isCorrect CDAQMXConfig::getItemError

CDAQMX::setOutput

Syntax

int setOutput(CDAQMXOutputData & cMXOutputData);

Parameters

cMXOutputData Specify the output channel data.

Description

Sets the output channel data.
Gets the setup data, updates it according to the specified output channel data, and

sends the setup data.
If the output type is changed, it will not match the channel setup data.

Return value

Returns an error number.

Reference

getMXConfig setMXConfig CDAQMXConfig::getClassMXOutputData

2.5 Details of the MX100 Class

Advertising