Cdaqmxchid::settype, Cdaqmxchid::setunit, Cdaqmxchid::setvalid – Yokogawa PC-Based MX100 User Manual
Page 145: Cdaqmxchid::tochname
2-122
IM MX190-01E
CDAQMXChID::setType
Syntax
void setType(int iKind, int iRange, int iScale =
DAQMX_SCALE_NONE);
Parameters
iKind
Specify the channel type.
iRange
Specify the range type.
iScale
Specify the scale type.
Description
Stores the specified values in the channel type field, range type field, and scale type field
of the data member.
CDAQMXChID::setUnit
Syntax
void setUnit(const char * strUnit);
Parameters
strUnit
Specify the unit name.
Description
Stores the specified value in the unit name field of the data member.
CDAQMXChID::setValid
Syntax
void setValid(int bValid);
Parameters
bValid
Specify the Boolean value.
Description
Stores the specified value in the channel status field of the data member.
CDAQMXChID::toChName
Syntax
static int toChName(int chno, int unitno = 0);
Parameters
chno
Specify the channel number.
unitno
Specify the unit number.
Description
Creates the channel name from the specified channel number and unit number.
Return value
Returns the channel name.
2.5 Details of the MX100 Class