Simulink model crashing when including to workspace block

조회 수: 1 (최근 30일)
Josh
Josh 2019년 12월 4일
답변: Fangjun Jiang 2019년 12월 5일
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.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2019년 12월 5일
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.

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by