How can I generate a variable frequency triangular wave in Simulink?

10 vues (au cours des 30 derniers jours)
NSB
NSB le 17 Fév 2016
Commenté : Maria le 6 Nov 2024
I want to input the frequency externally, it should give the triangular wave of that frequency

Réponses (2)

CAC
CAC le 17 Jan 2018
Hi, You could use the following setup in simulink
1. use wm as variable frequency input
2. set integrator in Wrap State mode with upper and lower value
3. use abs and level shifter to convert sawtooth into triangle waveform
Hope this could help.
  7 commentaires
Ryan
Ryan le 12 Oct 2024
Thank you so much CAC. It works well.
Maria
Maria le 6 Nov 2024
Hello CAC, can you send me the file? Thanks a lot

Connectez-vous pour commenter.


Peter Borisenko
Peter Borisenko le 21 Mar 2017
Привет! Я сделал вот так. Но заметил, что если частоту менять слишком интенсивно, генератор начинает лагать. Например управляющая частота меняется от 100 до 500 kHz, а на выходе проскакивают мегагерцы. Ищу решение.
  1 commentaire
cheng luo
cheng luo le 3 Août 2018
I could not find the triangle module in simulink ,could you send the total model in picture to my email,it is 940091522@qq.com

Connectez-vous pour commenter.

Catégories

En savoir plus sur Block Libraries dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by