Cdaqdarwinchinfo::getchname – Yokogawa PC-Based MX100 User Manual

Page 443

Advertising
background image

7-45

IM MX190-01E

DARWIN - Visual C++ -

7

Member Functions (Alphabetical Order)

CDAQDARWINChInfo::CDAQDARWINChInfo

Syntax

CDAQDARWINChInfo(DarwinChInfo * pDarwinChInfo = NULL);
CDAQDARWINChInfo(int chType, int chNo, int point, const char *
strUnit, int iStatus = DAQDARWIN_DATA_UNKNOWN);
virtual ~CDAQDARWINChInfo(void);

Parameters

pDarwinChInfo

Specify the channel information data using a structure.

chType

Specify the channel type.

chNo

Specify the channel number.

point

Specify the decimal point position.

strUnit

Specify the unit name.

iStatus

Specify the channel status.

Description

Constructs or destructs an object.
When constructing, the specified data is stored in the data member.If not specified,

the data member is initialized.

Reference

setChStatus setDarwinChInfo setUnit
CDAQChInfo::CDAQChInfo

CDAQDARWINChInfo::getChName

Syntax

int getChName(char * strName, int lenName);

Parameters

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 channel name from the value of the channel type field and channel

number field of the data member as a string and stores the string in the specified
field.

Return value

Returns the length of the created string.

Reference

getChNo getChType toChName

7.4 Details of the DARWIN Class

Advertising