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 comentarios

Mathieu NOE
Mathieu NOE el 15 de Oct. de 2020
hi
you mean, you would like to measure the time interval between spikes for positive and negative wave form ?
Ahmad Badran
Ahmad Badran el 19 de Oct. de 2020
yes that what i mean
Mathieu NOE
Mathieu NOE el 19 de Oct. de 2020
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 el 20 de Oct. de 2020
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 el 20 de Oct. de 2020
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)

Iniciar sesión para comentar.

Respuestas (1)

Rhea Chandy
Rhea Chandy el 6 de Nov. de 2020

0 votos

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.

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Oct. de 2020

Respondida:

el 6 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by