Error "Expression (...) is not addressable as required by the parameter because it contains tunable variables (...)" during model building

2 ビュー (過去 30 日間)
When trying to build a Simulink model by clicking "Build model", the build procedure is aborted and the following error message is issued:
"Expression 'par_VEH.dt_Mmax*par_VEH.dt_i/2' in parameter field 'Table' of 'simulation/Antriebsstrang und Radmomentenverteilung/Simple E-Maschine/M_Antr' is not addressable as required by the parameter because it contains tunable variables (par_VEH (base workspace))."
The variable "par_VEH" is a 1x1 struct previously initialized in the base Workspace. "par_VEH.dt_Mmax" and "par_VEH.dt_i" are both constant values. They are used in a Lookup Table in the field "Table data" to specify, well, the table data.
It should be noted that this error is also issued when running the check "Identify blocks that generate expensive rounding code" in the Code Generation Advisor (the check fails).
The Problem occurs during any build procedure independent of selected mode (Normal, Accelerator...). If I simply run the model in Normal Mode, though, it works. If I try to run the model in Rapid Accelerator Mode (which I eventually want to do), another error message appears (separate question).
What can I do to solve this?
Using R2015b.

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by