필터 지우기
필터 지우기

problem with simulink design verifier

조회 수: 13 (최근 30일)
Enrico Mazzocchi
Enrico Mazzocchi 2017년 10월 12일
답변: Bill Aldrich 2017년 12월 15일
Hi. When i'm using the simulink design verifier software i have these problems: -Model 'hst' callback InitFcn is not empty. Simulink Design Verifier does not support models with non-empty InitFcn callbacks. Please consider moving contents of this callback to a different model callback. -Simulink Design Verifier failed to initialize: 'hst' is incompatible with Simulink Design Verifier. What are the problems?? please i nedd a help

답변 (1개)

Bill Aldrich
Bill Aldrich 2017년 12월 15일
Thanks for your question.
Simulink Design Verifier does not support models with InitFcn callbacks because in some rare cases these callbacks can change model contents and parameters within the model after the model has been translated for analysis. This would result in Design Verifier analyzing model behavior that is different than your simulation behavior.
Please consider moving the content of your InitFcn callback to the model PostLoadFcn callback:
fcn = get_param(model,'InitFcn');
set_param(model, 'PostLoadFcn', fcn);
set_param(model, 'InitFcn', '');
More information about model callbacks is available here: https://www.mathworks.com/help/simulink/ug/model-callbacks.html

카테고리

Help CenterFile Exchange에서 Verification, Validation, and Test에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by