Output for Accelerator Model

2 ビュー (過去 30 日間)
Brett
Brett 2022 年 10 月 20 日
回答済み: Jim Riggs 2022 年 10 月 24 日
I've been trying to learn more about the accelerator modes in Simulink and was reading the following:
It states that we shouldn't use outports at the root level in our model if we are using accelerator... Maybe I'm misunderstanding, but how are we supposed to return results to the workspace without an outport or "to workspace" block? Is accelerator mode not intended to be used to return results, just viewing results within simulink?
Is there a way to return results to workspace with a block that is allowed in accelerator mode?
Thanks

採用された回答

Jim Riggs
Jim Riggs 2022 年 10 月 24 日
I think there is a misunderstanding.
The way I read it, if you use a large number of inport and outport blocks (at the root level), the accelerator may not speed up your model very much, but there is no exclusion on using these. (This applies to the root level inport/outport blocks only.)
"Accelerator mode runs the blocks as if you were running normal mode because these blocks do not generate code for the accelerator build. Consequently, if your model contains a high percentage of these blocks, accelerator mode may not increase performance significantly."
Likewise, all "to workspace" or "to file" blocks may be used, but these are run in normal mode.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by