Switching frequency-determining
Mostrar comentarios más antiguos
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
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
el 19 de Oct. de 2020
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
el 20 de Oct. de 2020
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)
Respuestas (1)
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.
Categorías
Más información sobre Modeling en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
