Effect of using simout block on simulation speed?

1 次查看(过去 30 天)
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............

采纳的回答

Ryan G
Ryan G 2012-8-27
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by