MATLAB Answers

Simulink model running in "real time"

115 views (last 30 days)
Hello everyone,
I would like to run my simulink model in the "real time". Actually, when I turn it on time goes from 0 to 10000s in less than 1s. Is there any possibility to slow it down?
I would like to have an opportunity to change some settings during the simulation and see the output.
Thank you in advance!
Best regards, Piotr

  0 Comments

Sign in to comment.

Accepted Answer

Ameer Hamza
Ameer Hamza on 10 Aug 2018
In R018a, you can go to Simulation > Pacing Option from the menu bar and set the simulation speed. In older versions, you will need https://www.mathworks.com/matlabcentral/fileexchange/29107-real-time-pacer-for-simulink.

  2 Comments

Piotr Pacanowski
Piotr Pacanowski on 10 Aug 2018
Hello, Thank you a lot, it works! Do you know how to freeze my PATH? I add the directory containing new blocks to the PATH (addpath) but after each restart of the matlab/simulink I have to do it again.
Thank you in advance!
Best regards, Piotr
Ameer Hamza
Ameer Hamza on 10 Aug 2018
You can use Set Path tool to add the path for the future sessions.

Sign in to comment.

More Answers (0)

Sign in to answer this question.