Pulse width modulation simulation
PWM Demo
The simulator demonstrates a principle of PWM (pulse width modulation) block when controlling process with two binary inputs via PID controller. The controller output is transformed from the interval <-1, 1> to the pulse of respective percentage width. For example the controller output 0.2 will lead to pulses of 20% PWM period width.
How to start the simulator?
Before starting the simulator (applet) by START button, the sampling period can be set in the field Sampling time. The continous applet running can be stopped by STOP button or paused by PAUSE button. The simulation speed can be adjusted by the slider. The re-init button reset all parameters to initial state.
All parameters of active blocks (non-shadow) can be changed in the dialog which is invoked by cliking at the block. Detailed description of block parameters is available in Function blocks reference manual.