MATLAB Answers

Simulink model crashing when including to workspace block

조회 수: 2(최근 30일)
Josh 4 Dec 2019
I have a simulink model which stops running when I have a to workspace block. The to workspace block is set to a timeseries that outputs at the final time step. When I run the model with the to workspace block commented out it runs with no problem, however including the to workspace block causes the model to stall at some intermediate time step.

  댓글 수: 0

로그인 to comment.

답변 수 (1)

Fangjun Jiang
Fangjun Jiang 5 Dec 2019
The "To Workspace" block saves variables to the workspace which needs memory to store the variables. It sounds like that you might run out of memory. Try to run your simulation for a shorter period of time first and then run "memory" in Command window to check the memory.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.




Translated by