Switching frequency-determining

how i can determin the switching freqency for the inverter coltage output as it show in the scope ,
is there any features in matlab help in this

댓글 수: 5

Mathieu NOE
Mathieu NOE 2020년 10월 15일
hi
you mean, you would like to measure the time interval between spikes for positive and negative wave form ?
Ahmad Badran
Ahmad Badran 2020년 10월 19일
yes that what i mean
Mathieu NOE
Mathieu NOE 2020년 10월 19일
hi
if you want to do it directlty in the simulink model , you need to create a counter which is triggered and reset by the pulses. the output of the counter gives you the period between pulses.
The solver must hav fixed sampling frequency
if you can save your simulink data and post process it inside matlab, I can share the example in the attachement.
of course , the frequency resolution depends of your simulink sampling frequency.
in the code , you just have to select a non zero threshold value (positive for the positive peaks detection and negative for .... you have understood !)
hope it helps
Ahmad Badran
Ahmad Badran 2020년 10월 20일
hi
Thank you for your answer.
I realy want to do it directlty in simulink model , but i could not succed in this.
is the triggered you are talking about same as in attached. if it is, what would be the trigger signal a the top of subsystem . and what is the input and how i can see the output
Mathieu NOE
Mathieu NOE 2020년 10월 20일
see example attached (R2015a)
the output of the last bloc gives you the period measured between two rising pulses (generated by the hit bloc)
the sampling frequency is 1000 Hz (dt = 1e-3)

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

답변 (1개)

Rhea Chandy
Rhea Chandy 2020년 11월 6일

0 개 추천

Hello Ahmad,
A built-in block that determines the switching frequency of a signal is not available in the Simulink library. This previously answered question may help you get some insight on this.
You can also look into this Spectrum Analyzer block to see if it suits your needs.

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

질문:

2020년 10월 15일

답변:

2020년 11월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by