MATLAB Answers

[Maximum Timing for Simulation]

2 views (last 30 days)
Hi, I have a simulink model and I would to know that what is the maximum the timing value can be assigned for simulation ?
Maximum = ???
>> sim('modelName','StartTime','0','StopTime',Maximum,'FixedStep','0.01');
Thank you.

  0 Comments

Sign in to comment.

Accepted Answer

Mundrathi Venugopal
Mundrathi Venugopal on 1 Feb 2019
I'm not sure about the maximum time that you can specify for a model.
However If you want to run the model continuously until you stop, you can assign the stop time as below.
set_param(bdroot,'StartTime','0','StopTime','Inf','FixedStep','0.01');
sim(bdroot);

  0 Comments

Sign in to comment.

More Answers (1)

Binh Huynh Thanh
Binh Huynh Thanh on 3 Feb 2019
Thank Mundrathi Venugopal very much.
As above answer, I think that the timing for simulation is unlimited.

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by