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

Respuestas (2)

CAC
CAC el 17 de En. de 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 comentarios

excuse me brother could you upload the matlab file i will be really appreciated
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!
i'm sorry, what is the utility of gain 1 and 2?
Hello CAC, what is 'p' in block named Gain2? Could you send me this file?
Thank you in advance.
Hello CAC, can you explain what is p and also send me this file? Thank you.
Thank you so much CAC. It works well.
Hello CAC, can you send me the file? Thanks a lot

Iniciar sesión para comentar.

Peter Borisenko
Peter Borisenko el 21 de Mzo. de 2017
Привет! Я сделал вот так. Но заметил, что если частоту менять слишком интенсивно, генератор начинает лагать. Например управляющая частота меняется от 100 до 500 kHz, а на выходе проскакивают мегагерцы. Ищу решение.

1 comentario

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

Iniciar sesión para comentar.

Categorías

Preguntada:

NSB
el 17 de Feb. de 2016

Comentada:

el 6 de Nov. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by