필터 지우기
필터 지우기

Unable to save states of a simulink model to workspace when the model referes to other models

조회 수: 2 (최근 30일)
I want to save the states of my simulink model to the workspace. My model refers to other models using 'model reference' block. Though I changed the 'Format' option to 'Structure', I get the same warning again and again and I am unable to save the state information. Need help regarding this issue. The warning message is given below
Warning: The states in model 'MyModel' cannot be logged as a matrix because the model has model blocks. For this model you need to set the 'Format' option to either 'Structure' or 'Structure with time'. 'Format' option can be specified either on the 'Data Import/Export' page of the Configuration Parameters dialog for this model or
via input arguments of the sim command for command line simulation.
  댓글 수: 3
Shyam Mudiraj
Shyam Mudiraj 2013년 4월 1일
I am changing the data logging option in the main model as well as the refered model
Ryan G
Ryan G 2013년 4월 1일
Are you running the referenced model in accelerator mode? According to this
The SimState feature does not support code generation, including Model Reference in accelerated modes.
It is possible to save the state and not simstate, however, you can't restore the state without simstate.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Model References에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by