Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Simulink modeling from the command line

1 vue (au cours des 30 derniers jours)
lei
lei le 7 Oct 2019
Clôturé : MATLAB Answer Bot le 20 Août 2021
How can I run two simulink models with inf simulation time at the same time from the command line?

Réponses (1)

Ankit
Ankit le 7 Oct 2019
Modifié(e) : Ankit le 7 Oct 2019
you can use following commands:
open_system({ 'model1name', 'model2name' });
set_param('model1name', 'StopTime', 'inf')
set_param('model2name', 'StopTime', 'inf')
  1 commentaire
Walter Roberson
Walter Roberson le 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

Community Treasure Hunt

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

Start Hunting!

Translated by