Custom Model Advisor customization function not running

조회 수: 2 (최근 30일)
Jacob Thomas
Jacob Thomas 2023년 10월 31일
댓글: Jacob Thomas 2023년 11월 14일
Hi all,
I'm trying to build a custom model advsior using the example provided from mathworks. After making some edits on the sl_customization files I'm getting the following error preventing to move further
Not enough input arguments.
Error in sl_customization (line 7)
cm.addModelAdvisorCheckFcn(@defineModelAdvisorChecks);
I have not altered any major changes to the code as provide from MATHWORKS. Any help regarding the same will be helpful, attachung the snap of the error below,
  댓글 수: 2
Gabor Kovacs
Gabor Kovacs 2023년 10월 31일
Hi,
You're not supposed to run that function like that. See here how to refresh customisations: https://uk.mathworks.com/help/simulink/ug/registering-customizations.html#bqt2_02-1_sep_bvaqc3t-1
Jacob Thomas
Jacob Thomas 2023년 11월 14일
Thank you Gabor for your info.

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

채택된 답변

Akshat Dalal
Akshat Dalal 2023년 11월 6일
Hi Jacob,
I understand you are facing an error while running the 'sl_customization' function. As Gaber mentioned, the 'sl_customization' function is not meant to be run like that. It is executed while setting up the Simulink environment.
You could either restart Simulink or enter the command 'sl_refresh_customizations' to reflect your customization in Simulink.
You could refer the following documentations for more information:
  1. https://www.mathworks.com/help/slcheck/ug/defining-custom-checks.html
  2. https://www.mathworks.com/help/simulink/ug/registering-customizations.html
I hope this helps.
  댓글 수: 1
Jacob Thomas
Jacob Thomas 2023년 11월 14일
Thank you so much for the response!! Now everything seems to be working fine.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by