Cdaqdarwindatainfo::setline, Cdaqdarwindatainfo::setstatus, Cdaqdarwindatainfo::toalarmtype – Yokogawa PC-Based MX100 User Manual

Page 458

Advertising
background image

7-60

IM MX190-01E

CDAQDARWINDataInfo::setLine

Syntax

int setLine(const char * strLine, int lenLine, int * pFlag);

Parameters

strLine

Specify the line using a string.

lenLine

Specify the byte size of the line.

pFlag

Specify the destination where the flag is to be returned.

Description

Analyzes the specified line and stores the information in the data member.
The line format is the output format of the measured data in ASCII code.

If an association with the channel information data exists, the information that can
be retrieved from the specified line is stored in the channel information data field.

Return value

Returns an error number.
Error:

Not data

The input data is too short. Or, the string incorrect.

Reference

getClassDARWINChInfo getStatus setAlarm setStatus setValue
toAlarmType CDAQDARWINChInfo::setChNo
CDAQDARWINChInfo::setChType CDAQDARWINChInfo::setPoint
CDAQDARWINChInfo::setUnit CDAQDARWINChInfo::toChType
CDAQDARWINChInfo::toFlag CDAQDARWINChInfo::toStatus

CDAQDARWINDataInfo::setStatus

Syntax

void setStatus(int iDataStatus);

Parameters

iDataStatus

Specify the data status.

Description

Stores the data status field of the data member to the specified value.

CDAQDARWINDataInfo::toAlarmType

Syntax

static int toAlarmType(const char * strAlarm);

Parameters

strAlarm

Specify the name of the alarm type.

Description

Converts the specified string into an alarm type.

Returns ìNo alarm”if the outside the range.

Return value

Returns the alarm type.

7.4 Details of the DARWIN Class

Advertising