필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
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

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2013년 6월 10일
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 2013년 6월 11일
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
Kaustubha Govind
Kaustubha Govind 2013년 6월 11일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by