Cdaqdarwinchinfo::tochname, Cdaqdarwinchinfo::tochrange – Yokogawa PC-Based MX100 User Manual

Page 448

Advertising
background image

7-50

IM MX190-01E

CDAQDARWINChInfo::toChName

Syntax

static int toChName(int chType, int chNo, char * strName, int
lenName);

Parameters

chType

Specify the channel type.

chNo

Specify the channel 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 channel name from the specified channel type and channel number as a

string and stores the string in the specified field.
For example, if the channel type is 0 and the channel number is 1, the string is set to “01”

In addition to the channel/relay types defined as constants, subunit numbers are
also channel/relay types. The subunit number is an integer between 0 and 5.

Return value

Returns the length of the created string.

CDAQDARWINChInfo::toChRange

Syntax

static int toChRange(int chType, int startChNo, int endChNo,
char * strName, int lenName);

Parameters

chType

Specify the channel type.

startChNo

Specify the start channel number.

endChNo

Specify the end channel 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 name of the channel range (channel type, start channel number, and end
channel number) as a string and stores the string in the specified field.

If the end channel number is less than or equal to the start channel number, it is
considered a single channel specified by the start channel number.

For example, if the channel type is 0, the start channel number is 1, and the end
channel number is 2, the string is set to “01-02”

In addition to the channel/relay types defined as constants, subunit numbers are
also channel/relay types. The subunit number is an integer between 0 and 5.

Return value

Returns the length of the created string.

Reference

toChName

7.4 Details of the DARWIN Class

Advertising