Can simulink be saved data to workspace with 'To workspace' block at end of simulation

2 views (last 30 days)
hi everyone,
I create big model at simulink and ı have lots of output at this model(with use 'to workspace' block).
When ı run simulation , Simulink is exported data to workspace at same time .
I think, this situation is increased finished time of simulation.
I have enough hardware resource, so ı want to simulink is exported these data at end of simulation .
Have we got any option for this
thank you

Answers (2)

Kaustubha Govind
Kaustubha Govind on 10 Jun 2013
See the second paragraph in my answer here to see what I think is how the 'To Workspace' block operates. In reality, even though data may be periodically written to the workspace throughout the simulation, it is not guaranteed to be available until simulation ends. Could you explain more about why you don't want the block to write to the workspace at all until simulation ends?

Ilkay Meseli
Ilkay Meseli on 11 Jun 2013
I think if matlab is written data to workspace while, simulation is ran,it is slowed simulation speed. If I use ram memory for stored these data and write is to workspace at the end of the simulation.(I have 25 gb ram memory in workstation), Simulation's speed may be increased. This like that; somebody create a 'm' file but, don't use semicolon.
  1 Comment
Kaustubha Govind
Kaustubha Govind on 11 Jun 2013
It doesn't look like the 'To Workspace' block allows you to specify the size of the buffer (RAM) that it uses for the signal data. You may need to create your own custom block using a mechanism such as MATLAB S-functions to do what you need. Please also consider submitting an enhancement request to add such an option to the block via MathWorks Support.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!