How to run two different simulink simulations at the same time?

11 vues (au cours des 30 derniers jours)
Adam s
Adam s le 31 Août 2020
Commenté : D D le 13 Avr 2023
This is an example, but how would you run two different simulink files at the same time using parsim and batchsim? I would like to eventually push slighty different simulink simulations to each worker that i already have built.
openExample('simulink/OpenTheModelExample');
load_system('ex_sldemo_househeat')
in1 = Simulink.SimulationInput('ex_sldemo_househeat');
close_system('ex_sldemo_househeat')
load_system('vdp')
in2 = Simulink.SimulationInput('vdp');
close_system('vdp')
in = in1;
in =[ in1, in2];
out = parsim(in)
returns
ModelName property in the array of SimulationInput objects must be the same and non-empty.

Réponses (1)

Rohit Pappu
Rohit Pappu le 3 Sep 2020
As of now, parsim cannot run models with different names. This issue is already known and the concerned parties may be investigating further.
  3 commentaires
Walter Roberson
Walter Roberson le 12 Avr 2023
Still the same, at least up to R2022b (I do not have R2023a installed yet)
D D
D D le 13 Avr 2023

Connectez-vous pour commenter.

Catégories

En savoir plus sur Run Multiple Simulations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by