How can I measure in a exact point of a electronic circuit each cycle in Simulink?

조회 수: 1 (최근 30일)
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
Lud Erma
Lud Erma 2020년 3월 31일
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
Álvaro Morales Muñoz 2020년 4월 7일
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.

댓글을 달려면 로그인하십시오.

답변 (4개)

Tony Lennon
Tony Lennon 2020년 4월 9일

Tony Lennon
Tony Lennon 2020년 4월 9일
Álvaro Morales Muñoz on 31 Mar 2020 at 17:18
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
Tony Lennon 2020년 4월 9일
Lud Erma on 31 Mar 2020 at 17:55
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
Tony Lennon 2020년 4월 9일
Álvaro Morales Muñoz on 7 Apr 2020 at 16:10
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.

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by