PWM
R2026bPulse width modulation of digital output pin
Libraries:
Simulink Coder Support Package for BeagleBone Blue Hardware /
Basic
Description
Add-On Required: This feature requires the Simulink Coder Support Package for BeagleBone Blue Hardware add-on.
The PWM block varies the power output of a digital output pin. The input value sets the percentage of time that the digital square-wave is on within a specific period. This time percentage is called duty cycle.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"bbblueBasicLib/PWM"
Example: add_block("bbblueBasicLib/PWM","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2018b