Filter löschen
Filter löschen

parameter is not addressable, because of its custom storage class

28 Ansichten (letzte 30 Tage)
Arunkumar Muthukumaran
Arunkumar Muthukumaran am 17 Feb. 2016
Kommentiert: sangmin kim am 7 Aug. 2023
I have defined a parameter in Simulink data dictionary and it is imported from header file. The model is simulating without any error. But during code generation, I get the error that, parameter is not addressable, because of its custom storage class I am using MATLAB 2014a

Antworten (3)

Gautham Sundararajan
Gautham Sundararajan am 22 Mär. 2019
Hi Arunkumar,
I am Gautham from The MathWorks.
Since I do not have access to a model, I am assuming that you are trying to build an AUTOSAR model containing a referenced model and reference config stored in sldd.
If that is the case, then a possible workaround I would try is to place a signal conversion block (make sure to check the "exclude from block reduction" box on it) between the input port of the model block and the block that is feeding into the inport of the model block.
This will make an addressable copy of the var that is not addressable.
Hope this helps!
Thanks,
Gautham
  2 Kommentare
Rahul Gunda
Rahul Gunda am 9 Nov. 2021
I was getting similar issue with different logic where i am using constant blocks and using custom storage class to generate code for those parameters. after adding signal conversion blocks, the code generation is successful.
Thanks for help.
sangmin kim
sangmin kim am 7 Aug. 2023
I had the exact the same issue. And after adding the signal coversion block, the error has disappeared.
Thanks for your help :)

Melden Sie sich an, um zu kommentieren.


gowthaman muthuvel
gowthaman muthuvel am 14 Nov. 2019
Hi I'm Gautam,
Same scenario mentioned above, but the constant which I did not passing throw as inport..It's custom library function(Interpolation block with X and Y parameter instances on it.). How can I resolve this one.

Yuki Deguchi
Yuki Deguchi am 19 Jan. 2023
日本ユーザへ
本メッセージは日本語では以下のように表示されます。
Error: カスタム ストレージ クラスのため、パラメーター '定数名' はアドレス指定可能ではありません。

Kategorien

Mehr zu Interactive Model Editing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by