Filter löschen
Filter löschen

how can I generate a high frequency signal with simulink

15 Ansichten (letzte 30 Tage)
Sisi Di
Sisi Di am 25 Jul. 2016
Beantwortet: Sabin am 27 Sep. 2023
I'm trying to generate a 40kHz sine wave with signal generator in simulink, but the result in the scope looks like a triangle wave. Can simulink generator such high frequency wave? or is there any preference I set wrong ? Thanks a lot.
  2 Kommentare
amirul mukminin
amirul mukminin am 4 Nov. 2020
Hello same goes to me here .. i need to create a 25khz reference signal for my pid controller to control the switching mechanism in my buck converter.. i tried to used the repeating sequences block but it seems like going nowhere can somebody help??

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sabin
Sabin am 27 Sep. 2023
It is possible to generate high frequency waveforms. The problem is probably related to the solver settings, basically Simulink will not have enough points to capture the desired behavior. If you are using Variable step simulation with everything on Auto, Simulink will compute the maximum step size to 8.33333e-6 when trying to generate a 40 kHz waveform. Therefore, it will look more like an up-down counter. By changing the Max step Size in the Solver configuration/Solver to 1e-6 or lower, the sine wave will look OK. Similarly, if you are using fixed step simulation double check that sample time is small enough to capture all the details. I hope this helps.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by