Using parallel workers to edit same Simulink model?

1 回表示 (過去 30 日間)
SB
SB 2019 年 2 月 5 日
コメント済み: SB 2019 年 2 月 8 日
Is it possible to use a parfor loop to execute commands like 'add_block' to a single Simulink model? In which, all parallel workers are operating on the same model.

採用された回答

Edric Ellis
Edric Ellis 2019 年 2 月 6 日
In short: no - you cannot make simultaneous changes to a single Simulink model file from multiple processes (i.e. the multiple MATLAB workers executing your parfor loop). What you might be able to do is have each worker operate on a separate Simulink library file, but it's not clear what you're trying to achieve.
  1 件のコメント
SB
SB 2019 年 2 月 8 日
Understood, thank you Edric.
My goal is to automatically generate a simulink model based on signals listed within a large excel document. Recent tests, I've found the build times to be in excess of 10 minutes; while not bad for the scale and complexity of the models, I was curious if parallelizing would be an effective method to speed up this process.
If I need to work with even larger signal lists; I will try the method you suggested -- having multiple workers operate on multiple simulink libraries, then merging all of those multiple libraries into a single file.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by