Info

This question is closed. Reopen it to edit or answer.

Simulink modeling from the command line

2 views (last 30 days)
lei
lei on 7 Oct 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
How can I run two simulink models with inf simulation time at the same time from the command line?

Answers (1)

Ankit
Ankit on 7 Oct 2019
Edited: Ankit on 7 Oct 2019
you can use following commands:
open_system({ 'model1name', 'model2name' });
set_param('model1name', 'StopTime', 'inf')
set_param('model2name', 'StopTime', 'inf')
  1 Comment
Walter Roberson
Walter Roberson on 7 Oct 2019
However, you cannot sim() them both at the same time and have them both running. In order to do that, see https://www.mathworks.com/help/simulink/ug/running-parallel-simulations.html

This question is closed.

Community Treasure Hunt

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

Start Hunting!