Simulink modeling from the command line

How can I run two simulink models with inf simulation time at the same time from the command line?

回答(1 个)

Ankit
Ankit 2019-10-7
编辑:Ankit 2019-10-7
you can use following commands:
open_system({ 'model1name', 'model2name' });
set_param('model1name', 'StopTime', 'inf')
set_param('model2name', 'StopTime', 'inf')

1 个评论

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

此问题已关闭。

提问:

lei
2019-10-7

关闭:

2021-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by