Output for Accelerator Model

조회 수: 3 (최근 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 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