필터 지우기
필터 지우기

Illegal data access or computation detected for the chart given that 'Execute At Initialization' must be enabled

조회 수: 1 (최근 30일)
Hi,
I am trying to generate hdl code for state flow chart and i enabled option "enable chart at entry" in properties. still i am getting error : Error: Evaluation of instantiation function on class hdlstateflow.StateflowHDLInstantiation failed with the error message: Error using ==> construct_error at 109 Illegal data access or computation detected for the chart given that 'Execute At Initialization' must be enabled. See above errors more information. Stateflow HDL code generation failed for chart 'Chart' (#247).
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 6월 13일
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
Jan
Jan 2012년 6월 14일
@shankar: The tag "urgent" is misplaced in a forum, in which volunteers create the answers in their sparetime. While I personally translate "urgent" to "did not manage to start in time", others are annoyed by this tag because they do not want to be pushed.

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

답변 (1개)

Tim McBrayer
Tim McBrayer 2012년 6월 13일
"Enable chart at entry" and "Execute at initialization" are two separate settings, both of which must be correctly set for HDL code generation.
The easiest way to ensure that any model is properly configured for HDL Coder is to use the hdlsetup command, like so:
>> hdlsetup my_model_name
This will set a number of parameters to suitable values for HDL code generation.

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by