Simulink Desktop Real-Time parallel simulations and communicate between simulations

조회 수: 3 (최근 30일)
I know that parsim command could be used to run parallel simulations in Simulink. However, I want to run simulations real-time. Therefore, does anyone have any experience using parsim to run parallel simulations (hardware in the loop) real-time? Can I use Simulink Desktop Real-Time for this? Please note that I want to run simulations on a single computer, and I want to communicate signals between simulations.

채택된 답변

Jan Houska
Jan Houska 2022년 7월 26일
Hi Abdülhamit,
it is not possible to run parallel simulations using Simulink Desktop Real-Time using parsim or any similar approach. Simulink Desktop Real-Time uses built-in real-time scheduler that is responsible for scheduling individual real-time tasks so that real-time criteria are met.
Instead of trying to run several simulations in parallel, you can try to run all the models together using model referencing. That is, you create an empty top model, reference all the models that should be run from this top model, then run the top model in real time. This also solves the issue of communication between the models - you can connect the input and output signals of the submodels at the top model level.
Good Luck, Jan
  댓글 수: 3
Jan Houska
Jan Houska 2022년 7월 28일
Hi Abdülhamit,
it is currently not possible to have the I/O device blocks inside the referenced submodels. The recommended way is to have these blocks in the top-level model and to communicate the signals to the submodels using the inport/outport blocks.
Good Luck, Jan

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Real-Time Simulation에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by