2cdaqmxconfig::setpwmtype – Yokogawa PC-Based MX100 User Manual

Page 170

Advertising
background image

2-147

IM MX190-01E

MX100 -Visual C++

2

CDAQMXConfig::setPWMType

Syntax

void setPWMType(int pwmNo,int iKind,int refChNo =
DAQMX_REFCHNO_NONE);

Parameters

pwmNo

Specify the PWM data number.

iKind

Specify the PWM type with the channel type.

refChNo

Specify the reference channel number.

Description

Sets the channel type of the PWM module.
If unused is specified for the channel type, the channel is set to SKIP (not used).

If PWM (transmission output) is specified for the channel type, specify the channel
number of the input channel for the reference channel.

If the channel does not exist, the channel is not on the PWM module, or the
specified type is not a PWM type, the channel type is not set.

If the constant for “Specify all AO/PWM numbers” is specified for the PWM data
numbers, all PWM channels are processed.

Each setting type for the channels is reset to match the output type of the output
channel data.

Reference

getClassMXChConfig getClassMXOutputData getClassMXSysInfo
setSKIP
CDAQMXChConfig::setPWM
CDAQMXChConfig::setRefChNo
CDAQMXChConfig::setType
CDAQMXChConfig::setValid
CDAQMXOutputData::getOutputType
CDAQMXSysInfo::getModuleType

2.5 Details of the MX100 Class

Advertising