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

10 ビュー (過去 30 日間)
NSB
NSB 2016 年 2 月 17 日
コメント済み: Maria 2024 年 11 月 6 日
I want to input the frequency externally, it should give the triangular wave of that frequency

回答 (2 件)

CAC
CAC 2018 年 1 月 17 日
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 件のコメント
Ryan
Ryan 2024 年 10 月 12 日
Thank you so much CAC. It works well.
Maria
Maria 2024 年 11 月 6 日
Hello CAC, can you send me the file? Thanks a lot

サインインしてコメントする。


Peter Borisenko
Peter Borisenko 2017 年 3 月 21 日
Привет! Я сделал вот так. Но заметил, что если частоту менять слишком интенсивно, генератор начинает лагать. Например управляющая частота меняется от 100 до 500 kHz, а на выходе проскакивают мегагерцы. Ищу решение.
  1 件のコメント
cheng luo
cheng luo 2018 年 8 月 3 日
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

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeBlock Libraries についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by