How can I measure in a exact point of a electronic circuit each cycle in Simulink?
Ältere Kommentare anzeigen
Dear sir,
I am trying to simulate a buck circuit in Simulink. I have the circuit and I probe it in open loop and it works. The problem is when I try to work in close loop (I use a PWM control of the inductor current).
I need the value of the current in the inductor. This shape is triangular. I put a current sensor in my circuit and I get it. But for my control, I want to measure in the middle of the rising edge, because I need the average current. How can I do it?. I know that this point is in the middle of my duty cycle. I attach a capture of my circuit.
Thank you very much for your time.

4 Kommentare
SIN YAN WU
am 31 Mär. 2020
Álvaro Morales Muñoz
am 31 Mär. 2020
Lud Erma
am 31 Mär. 2020
Hi. U should synchronize carrent mesuarment with Hi value of PWM triangle carrier. It is center of DUTY, it works in case symmetrycal PWM carrier.
Álvaro Morales Muñoz
am 7 Apr. 2020
Antworten (4)
Tony Lennon
am 9 Apr. 2020
0 Stimmen
You can use this
try it.
Tony Lennon
am 9 Apr. 2020
0 Stimmen
That is a solution. But is there an option to get the value in a exact moment? I do not know why, I am having a high varation in the average value.
Thank you very much. I apreciate this attention a lot.
Tony Lennon
am 9 Apr. 2020
0 Stimmen
Hi. U should synchronize carrent mesuarment with Hi value of PWM triangle carrier. It is center of DUTY, it works in case symmetrycal PWM carrier.
Tony Lennon
am 9 Apr. 2020
0 Stimmen
Thank you for your answer. Yes, I am using a symmetrycal PWM carrier. How can I do that in a efficient way? I tried this (see the images), but the result oscilates. I think it is not the best way.
1 Kommentar
Álvaro Morales Muñoz
am 13 Apr. 2020
Communitys
Weitere Antworten in Power Electronics Control
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!