Setpwmmx – Yokogawa PC-Based MX100 User Manual
Page 322
![background image](/manuals/360310/322/background.png)
5-64
IM MX190-01E
setPWMMX
Syntax
int setPWMMX(DAQMX daqmx, int iRangePWM, int startChNo, int
endChNo, int spanMin, int spanMax);
Declaration
Public Declare Function setPWMMX Lib "DAQMX"(ByVal daqmx As
Long, ByVal iRangePWM As Long, ByVal startChNo As Long, ByVal
endChNo As Long, ByVal spanMin As Long, ByVal spanMax As Long)
As Long
Parameters
daqmx
Specify the device descriptor.
iRangePWM
Specify the PWM range type from the range type.
startChNo
Specify the start channel number.
endChNo
Specify the end channel number.
spanMin
Specify the span minimum.
spanMax
Specify the span maximum.
Description
Sets the specified channel range to the PWM range.
• If the minimum and maximum values of the span are equal, the span is
considered to be omitted.
• The setup data is retrieved collectively, changed, and sent collectively.
• Channels from unsupported modules are ignored.
• Output channel data is also changed.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQMX::getMXConfig
CDAQMX::setMXConfig
CDAQMXConfig::setPWM
5.1 Details of Functions - MX100 (Visual C/Visual Basic) -