Missing "Configure Model Functions" Button in Interface tab of Code Generation
조회 수: 3 (최근 30일)
이전 댓글 표시
In the tab "Code Generation" ->"Interface" the button "Configure Model Functions" is missing or greyed out. I used the ert target and Nonreusable function, but I can not control the names of the parameter of the function call.
![GreyConfigureModelFunctions.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/206086/GreyConfigureModelFunctions.jpeg)
댓글 수: 0
답변 (2개)
Harshita Gupta
2019년 3월 4일
The 'ModelStepFunctionPrototypeControlCompliant' parameter can determine whether the 'Configure Model Functions' appears or not.The button can be made to appear and disappear by executing the following command(s):
>> set_param(gcs, 'ModelStepFunctionPrototypeControlCompliant', 'on/off');
The 'Configuration Parameters' window should be reopened for the changes to take effect.
Also consider the following steps for reference:
>> rtwgensettings.SelectCallback = 'custom_select_callback_handler(hDlg, hSrc)';
>> slConfigUISetVal(hDlg, hSrc, 'ModelStepFunctionPrototypeControlCompliant', 'on');
>> slConfigUISetEnabled(hDlg, hSrc, 'ModelStepFunctionPrototypeControlCompliant', false);
As another workaround, try the following to see if this is settable for your configuration set.
>> cfg_set = getActiveConfigSet(bdroot) %must be ERT-derived targe
>> set_param(cfg_set, 'ModelStepFunctionPrototypeControlCompliant', 'on')
>> openDialog(cfg_set)
>> save_system(gcs)
댓글 수: 1
Rongfei deng
2019년 8월 28일
I had the same problem. I used Matlab 2019a.
I've tried these methods, but they don't work.
![微信截图_20190828100450.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/235507/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20190828100450.png)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!