Simulink error 'Reference to non-existent field 'form'.'

조회 수: 4 (최근 30일)
eva_laura
eva_laura 2018년 8월 27일
댓글: GK 2018년 9월 5일
I am working on a simulink model which previously ran without problems. I replaced one block and resolved the bugs that simulink indicated to me upon running the model (I could see the bugs nicely in the Diagnostic Viewer). When I run the model now, the Diagnostics is empty and all that appears is this error message:
An error occurred while stepping through the simulation and the simulation was terminated
Caused by:
  • Reference to non-existent field 'form'.
There is no line or anything else indicated and I did not call any field or variable 'form', so I can't locate the problem. In case this information is useful, using the command 'lasterror' in the command window returns the identifier: 'Stateflow:translate:SFcnErrorStatus'. I am grateful for any hint on how to solve this issue.
  댓글 수: 2
Rachana Reddy Mamilla
Rachana Reddy Mamilla 2018년 8월 30일
what was the block you replaced and to what block?
eva_laura
eva_laura 2018년 8월 30일
They were both blocks consisting of several sub levels. The one I replaced it with consists mainly of connected matlab functions, hence the already mentioned bugs which were shown in the Diagnostics and which I could resolve.

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

답변 (1개)

GK
GK 2018년 9월 4일
Hi, Two steps to this problem:
1. Is there any stateflow in your model? Please remove it and check simulation. Corrupt MATLAB may not be able to execute Stateflow blocks.
2. If it still throws that error, is there any s-function block in your model? Please remove it and check simulation.
  댓글 수: 2
eva_laura
eva_laura 2018년 9월 5일
Thank you for the suggestions. Can you tell me, how do I remove any stateflow from my model? The block I replaced does not contain any s-functions, only MATLAB functions.
GK
GK 2018년 9월 5일
You can:
1. Delete it
2. Connect Terminator to its inputs
3. Connect Ground to its outputs
4. Check simulation.

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

카테고리

Help CenterFile Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by