フィルターのクリア

How to add Model Advisor checks for a toolbox?

2 ビュー (過去 30 日間)
Wojciech Przystas
Wojciech Przystas 2015 年 7 月 22 日
編集済み: Wojciech Przystas 2015 年 7 月 22 日
Hi,
I would like to add a set of check for my own Toolbox similar to the Simulink Coder or Embedded Coder Product checks. But as soon as the checks are defined in my 'sl_customization.m' file in my toolbox directory Simulink prints the following warning:
Warning: Do not place a sl_customization.m (d:\matlab\r2015a_win64\rtw\c\test_target\sl_customization) file that customizes the
Model Advisor in your root MATLAB folder, or any of its sub-folders, with the exception of the matlabroot/work folder.
Is there a workaround for this issue? How can I overcome this problem?
Unfortunately all build-in Simulink checks are p-Code files :(
Thanks.

回答 (1 件)

gvreddy
gvreddy 2015 年 7 月 22 日
To run custom checks, please follow below steps:
1) Place sl_customization.m file in current directoy(do not place file in Matlab root folder)
2) Close model ad Run sl_refresh_customizations command
3) Reopen model and Open Model Advisor
there you can find custom checks defined by you. If you need any help for defining custom checks, Please refer this Link
  1 件のコメント
Wojciech Przystas
Wojciech Przystas 2015 年 7 月 22 日
編集済み: Wojciech Przystas 2015 年 7 月 22 日
Hi,
thanks.
But this relates to a specific model in a corresponding directory.
My goal is to have a set of checks defined for my toolbox. Currently I'm placing my 'sl_customization.m' with the check in 'matlabroot/work/test_target', which works fine.
But I would like to have it in my toolbox directory, since there is already a 'sl_customization.m' file with some custom Simulink menu entries.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeRun Model Advisor Checks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by