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 CenterFile Exchange에서 Block Libraries에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by