How can I generate a variable frequency triangular wave in Simulink?
Ältere Kommentare anzeigen
I want to input the frequency externally, it should give the triangular wave of that frequency
Antworten (2)
CAC
am 17 Jan. 2018
1 Stimme
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 Kommentare
Anas Ibrahim
am 13 Jun. 2018
excuse me brother could you upload the matlab file i will be really appreciated
cheng luo
am 3 Aug. 2018
I meet the same question.However,I can not construct the whole model,Please upload the total matlab file or send it to my email 940091522@qq.com,please!
Antonio Acampora
am 4 Mai 2020
i'm sorry, what is the utility of gain 1 and 2?
Alper
am 7 Nov. 2020
Hello CAC, what is 'p' in block named Gain2? Could you send me this file?
Thank you in advance.
Vamshi A C
am 1 Apr. 2022
Hello CAC, can you explain what is p and also send me this file? Thank you.
Ryan
am 12 Okt. 2024
Thank you so much CAC. It works well.
Maria
am 6 Nov. 2024
Hello CAC, can you send me the file? Thanks a lot
Peter Borisenko
am 21 Mär. 2017
0 Stimmen
Привет! Я сделал вот так. Но заметил, что если частоту менять слишком интенсивно, генератор начинает лагать. Например управляющая частота меняется от 100 до 500 kHz, а на выходе проскакивают мегагерцы. Ищу решение.
1 Kommentar
cheng luo
am 3 Aug. 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
Kategorien
Mehr zu Block Libraries finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!