Output for Accelerator Model
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Brett
el 20 de Oct. de 2022
Respondida: Jim Riggs
el 24 de Oct. de 2022
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
0 comentarios
Respuesta aceptada
Jim Riggs
el 24 de Oct. de 2022
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!