Effect of using simout block on simulation speed?

1 vue (au cours des 30 derniers jours)
Jagmohan singh
Jagmohan singh le 27 Août 2012
Hello, I am using simout block in my simulink model to collect the data associated with some Signals. I can do this either by using separate simout for each signal, or by using simout block alongwith a BusCreator block where I will use Buscreator to collect data from all the signals and then simout block to collect data from BusCreator.
For me things are easier if I use different simout block from different signal. I want to know whether using too many simout blocks when one simout blocks alongwith a bus creator can be used, affects the simulation speed?
Thanks for the help............

Réponse acceptée

Ryan G
Ryan G le 27 Août 2012
I wouldn't expect to much difference in simulation speed from to_workspace blocks. However, if you end up having hundreds then it may possibly slow it down. I think the more notable limitation you may see is in memory as each stored data will suck up RAM. This should not change if you use a bus or individual blocks.
You may notice a change in initialization time as well since the to_workspace blocks will have to create a new variable for each block.
The answer ultimately depends on number of signals being logged.

Plus de réponses (0)

Catégories

En savoir plus sur Event Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by