how to change the switch between two condition?

hai i want to switch between two condition,i;e between normal pwm method and hysteresis pwm method. my circuit have to work 5 seconds in pwm technique and after 5 seconds it has to switch to the hysteresis pwm method automatically. mine simulation time is 30seconds. what condition i have to give and if i have to use the clock then how i want to give the control for these two conditions?
thank you

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-6-6
编辑:Azzi Abdelmalek 2013-6-6
You can use a switch block
The second port of your switch block should be connected to a sine wave signal (from a sine wave block) y=sin(0.1*2*pi*t) and set the threshold u2>0. the first and third port of your switch block are connected to your pwm1 and pwm2

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by