Setpwmtypemx – Yokogawa PC-Based MX100 User Manual
Page 323
![background image](/manuals/360310/323/background.png)
5-65
IM MX190-01E
Functions for the MX100 (Visual C/Visual Basic)
5
setPWMTypeMX
Syntax
int setPWMTypeMX(DAQMX daqmx, int pwmNo, int iKind, int
refChNo);
Declaration
Public Declare Function setPWMTypeMX Lib "DAQMX"(ByVal daqmx
As Long, ByVal pwmNo As Long, ByVal iKind As Long, ByVal
refChNo As Long) As Long
Parameters
daqmx
Specify the device descriptor.
pwmNo
Specify the PWM data number.
iKind
Specify the type of PWM channel using a channel type.
refChNo
Specify the reference channel using a channel number.
Description
Sets the channel corresponding to the PWM data number to the specified channel
type.
• Channels must be on the PWM module.
• The channel type that can be specified is either PWM or command PWM.
• The reference channel number must be an input channel.
• When specifying command PWM, the reference channel number is ignored.
• The setup data is retrieved collectively, changed, and sent collectively.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQMX::getMXConfig
CDAQMX::setMXConfig
CDAQMXConfig::setPWMType
5.1 Details of Functions - MX100 (Visual C/Visual Basic) -