Cdaqmxdatabuffer::next, Cdaqmxdatabuffer::setchinfo, Cdaqmxdatabuffer::setdatainfo – Yokogawa PC-Based MX100 User Manual

Page 642

Advertising
background image

12-78

IM MX190-01E

CDAQMXDataBuffer::next

Syntax

int next(void);

Description

Increments the current index number.

If the valid number of elements is exceeded, the storage location is considered to be
nonexistent, and a negative number is set.

Return value

Returns the current index number.

CDAQMXDataBuffer::setChInfo

Syntax

void setChInfo(CDAQMXChInfo & cMXChInfo);

Parameters

cMXChInfo

Specify the channel information data.

Description

Copies the specified channel information data to the data member.

CDAQMXDataBuffer::setDataInfo

Syntax

int setDataInfo(int index, CDAQMXDataInfo & cMXDataInfo);

Parameters

index

Specify the storage location index number.

cMXDataInfo

Specify the measured data.

Description

Copies the specified measured data to the specified location field of the data
member.

If no data exists in the element of the specified location in the list, data is created.
References to the channel information data are not copied, and become the channel

information data field of the data member.

Return value

Returns an error number.

Error:
Not Data

There is no data. The storage location index number is out of

range.
Exception

An exception occurred. The field could not be configured.

Reference

getClassMXChInfo
CDAQMXDataInfo::CDAQMXDataInfo
CDAQMXDataInfo::setClassMXChInfo

12.4 Details of the MX100 Class

Advertising