Cdaqmxconfig::setdi, Cdaqmxconfig::setdotype – Yokogawa PC-Based MX100 User Manual

Page 167

Advertising
background image

2-144

IM MX190-01E

CDAQMXConfig::setDI

Syntax

void setDI(int chNo, int iRangeDI, int spanMin = 0, int
spanMax = 0);

Parameters

chNo

Specify the channel number.

iRangeDI

Specify the range type of the digital input (DI).

spanMin

Specify the span minimum.

spanMax

Specify the span maximum.

Description

Sets the channel of the specified channel number to the specified range.

If the maximum and minimum values are the same, the span is considered omitted.
If the channel does not exist or the channel is not on the corresponding module, the

setting is void. Sets the range type using the digital input (DI) detailed range.
If the constant for “Specify all channel numbers” is specified for the channel

numbers, all channels are processed.

Reference

getClassMXChConfig getClassMXSysInfo
CDAQMXChConfig::setDI CDAQMXChConfig::setSpan
CDAQMXSysInfo::getModuleType CDAQMXSysInfo::getTempUnit

CDAQMXConfig::setDOType

Syntax

void setDOType(int doNo, int iKind, int bDeenergize =
DAQMX_VALID_OFF, int bHold = DAQMX_VALID_OFF);

Parameters

doNo

Specify the data number.

iKind

Specify the DO type using channel type.

bDeenergize

Specify the de-energize action using a Boolean value.

bHold

Specify hold action using a Boolean value.

Description

Sets the channel type of the DO module.

If unused is specified for the channel type, the channel is set to SKIP (not used).
If the channel does not exist, the channel is not on the DO module, or the specified

type is not a DO type, the channel type is not set. If the constant for “Specify all DO
numbers” is specified for the DO data numbers, all channels are processed.

Reference

getClassMXChConfig setSKIP
CDAQMXChConfig::setDeenergize CDAQMXChConfig::setHold
CDAQMXChConfig::setType CDAQMXChConfig::setValid
CDAQMXSysInfo::getModuleType

2.5 Details of the MX100 Class

Advertising