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

1 visualización (últimos 30 días)
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

Respuestas (2)

Kaustubha Govind
Kaustubha Govind el 10 de Jun. de 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 el 11 de Jun. de 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 comentario
Kaustubha Govind
Kaustubha Govind el 11 de Jun. de 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.

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by