Why simulink creates sine wave for 10 seconds?

19 views (last 30 days)
Hi,
I am very new to simulink, and trying to construct simple block diagrams with mathmatical operators. When I add a sine wave block and a scope block it creates a 10 seconds signal, I can alternate the frequency and amplitude but I cannot increase the total time being displayed.
How can I display this signal for instance 20 seconds?
Thanks in advance,
Rafet

Answers (2)

Rafet
Rafet on 9 Oct 2015
Sorry for bothering, I found it.
It is not related with the sine wave, it is simulation time which can be defined from the "simulation stop time" box on model window.
By setting the simulation stop time to any number it displays signals for that duration.

richardxie xie
richardxie xie on 6 Feb 2020
thank you!

Products

Community Treasure Hunt

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

Start Hunting!