constant array not generating code

2 ビュー (過去 30 日間)
Cynthia Fallon
Cynthia Fallon 2019 年 4 月 17 日
コメント済み: Ryan Livingston 2019 年 4 月 22 日
I have a constant array that worked in matlab 2011b, but doesn't work now. I get the following error when I try to generate code:
CODEGEN(Library,System,Destination,Rate,Endianness,HtmlReport,Project,SafetyCritical,hasSynergyInfo)
Caused by:
Error using tlc_c (line 179)
The generated code will inline the numeric value of the expression '[GAZ GEL]' (used in parameter 'Value'
of ('Model/Constant6') because the expression has one or more unsupported operators (see the documentation).
The code for this block will not use the tunable variables (GAZ (base workspace), GEL (base workspace)).
If I click on "see the documentation', I get:
Error using helpUtils.csh.helpviewMLFactory/checkForMapFile (line 33)
Specified topic id (rtw_tunable_expr) does not exist in map file
C:\EngTools\MATLAB\R2018B\help\rtw\helptargets.map.
Error in helpview (line 213)
help_path = factory.checkForMapFile(mapfilename, topic_id);
  3 件のコメント
Cynthia Fallon
Cynthia Fallon 2019 年 4 月 18 日
編集済み: Cynthia Fallon 2019 年 4 月 18 日
I don't think it's an install problem. All other help works OK.
The problem I really need fixed is the constant array [GAZ GEL] is not allowing code to be generated.
Ryan Livingston
Ryan Livingston 2019 年 4 月 22 日
That makes sense. I've made an internal note about the broken documentation link.
describes the requirements for tunable parameters in generated code. Specifically, you'll notice that [] are disallowed for tunable parameters.
Possible workarounds could include:
  • Save this value into something that complies with the requirements spelled out in that page
  • Disable tunability on that parameter

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by