beautypg.com

Cdaqdarwinsysinfo::setline, Cdaqdarwinsysinfo::torelayname – Yokogawa PC-Based MX100 User Manual

Page 474

background image

7-76

IM MX190-01E

CDAQDARWINSysInfo::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 system configuration data.

If the front of the line is M, it is interpreted as measurement interval format.
If the front of the line is E, it is interpreted as the last line.

If the front of the line is I, it is interpreted as the main unit.
Otherwise, it is interpreted as a subunit.

Return value

Returns an error number.
Error:

Not data

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

Reference

getDarwinUnitInfo

CDAQDARWINSysInfo::toRelayName

Syntax

static int toRelayName(int relayType, int relayNo, char *
strName, int lenName);

Parameters

relayType

Specify the relay type.

relayNo

Specify the relay number.

strName

Specify the field where the string is to be stored.

lenName

Specify the byte size of the field where the string is to be stored.

Description

Creates a relay name from the specified relay type and relay number as a string and

stores the string in the specified field.
If the relay number is 0, the string is set to ìOFF”

Return value

Returns the length of the created string.

Reference

CDAQDARWINChInfo::toChName

7.4 Details of the DARWIN Class