Output for Accelerator Model

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Sources 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by