How can I produce a repeated stairs output signal with different switching time ?

1 view (last 30 days)
hello, Im trying to command an IGBT continuously (during my 0.04s simulation) with this switching:[1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,1,0,1] But I want to control the time the IGBT is closed too. So I have for each state a time: [0.684 0.114 0.171 0.114 0.171 0.114 0.114 0.171 0.228 0.228 0.114 0.057 0.114 0.285 0.342 0.057 0.114 0.057 0.627 0.456 0.171 0.513 0.057 0.057 0.456 0.285 0.513 0.057 0.285 0.228 0.171 0.057 0.228 0.114 0.057 0.114 0.114 0.684] I already tried with a stairs generator but it only run once and I want it to be always the same thing during all the simulation I hope I've explain it in a good way, English is not my first language Thanks

Answers (1)

Sabin
Sabin on 21 Jan 2024
For this kind of requirement probably a repeating sequence can work:
In general I would look at using a PWM generator and varying the duty cycle to control the IGBT.

Categories

Find more on Simscape in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!