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 start.gif, 648B button, the sampling period can be set in the field Sampling time. The continous applet running can be stopped by STOP stop.gif, 666B button or paused by PAUSE pause.gif, 1,1kB button. The simulation speed can be adjusted by the slider. The re-init button reinit.png, 858B 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.