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

1 次查看(过去 30 天)
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

回答(1 个)

Sabin
Sabin 2024-1-21
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.

类别

Help CenterFile Exchange 中查找有关 Simscape 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by