DatasetRef; parsim: 'Unable to read file ... No such file or directory'

3 ビュー (過去 30 日間)
Florian Rössing
Florian Rössing 2021 年 10 月 29 日
回答済み: Fawad Farooq Ashraf 2022 年 2 月 14 日
Hi everyone,
I am looking into parallel simulation (see e.g. here: https://de.mathworks.com/help/simulink/ug/stream-input-data-for-a-parallel-simulation.html), I have oriented pretty much completly on this method.
I create an array of datasetRef objects pointing to a file (lets call it test.mat), put those in an array (simIN) of simulation input objects and then hand the array of simulation input objects to parsim. However the simulations return with an error: 'test.mat' not found.
However I can run a simulation using sim(simIN(i)) and it returns without an error.
I would guess the problem is related to parsim distributing information to the workers, as the Referenz object doesnt seem to be the problem.
Is the problem known? Anyone has any ideas?
Thank you in advance.

採用された回答

Fawad Farooq Ashraf
Fawad Farooq Ashraf 2022 年 2 月 14 日
try to use
simOut = parsim(simIN,'TransferBaseWorkspaceVariables','On');

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRun Multiple Simulations についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by