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일

0 개 추천

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