필터 지우기
필터 지우기

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

조회 수: 19 (최근 30일)
Adam s
Adam s 2020년 8월 31일
댓글: D D 2023년 4월 13일
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.

답변 (1개)

Rohit Pappu
Rohit Pappu 2020년 9월 3일
As of now, parsim cannot run models with different names. This issue is already known and the concerned parties may be investigating further.
  댓글 수: 3
Walter Roberson
Walter Roberson 2023년 4월 12일
Still the same, at least up to R2022b (I do not have R2023a installed yet)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Run Multiple Simulations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by