How to use multiple cores for simulink

5 ビュー (過去 30 日間)
Lucky
Lucky 2021 年 3 月 19 日
コメント済み: Lucky 2021 年 3 月 26 日
I am trying to use multiple cores to run thiis file. For this I have to create different atomic subsystems in order for the processor to access each subsystem separately so I have created different atomic subsystems viz. 1 2 3 4 &5. Now since these blocks interact with each other so I am getting algebraic loop error. Also I have a few questions regarding parallelization of the cores:
  1. It says ignored and I have already tried unchecking (Select Code Generation > Interface > Advanced parameters, clear the MAT-file logging check box.), but this doesn't go away. So what should I do about this?
  2. I need to read a file from workspace, is it possible while using parallel cores or should I think of other ways to do it.?
Thanks in advance for your time and response

採用された回答

Kiran Felix Robert
Kiran Felix Robert 2021 年 3 月 22 日
Hi Lucky
I understand that you get an algebraic loop warning when trying to simulate your Simulink model in multiple cores. This is because the subsystems which you run in parallel have a data dependency. This can be resolved when you use unit-delay blocks to break the direct dependence. Refer this documentation for more details on that, Run Co-Simulation Components on Multiple Cores.
When you run simulations in parallel, you need load the data from workspace on every worker. Refer the parfevalOnAllor the spmdto learn more about these.
  1 件のコメント
Lucky
Lucky 2021 年 3 月 26 日
Putting a delay solve the algebraic loop problem. Thanks a lot Kiran.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModel, Block, and Port Callbacks についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by