Issue during code generation Simulink

5 visualizaciones (últimos 30 días)
ESSALMI YOUSSEF
ESSALMI YOUSSEF el 26 de Nov. de 2019
Respondida: Aniket el 5 de Feb. de 2025 a las 6:54
Dear all,
Issue during code generation...
Why can't I generat code of a Mdl that contains Tunableparam operations inside Lookup tables
for exemple :
"Breakpoints1 = n -1"
n : Is Inlined paramters
Capture.PNG
When I try to do that I get the error_message below...
d.PNG
NB : When I use tunable operations inside constant block that works
Thank you in advance

Respuestas (1)

Aniket
Aniket el 5 de Feb. de 2025 a las 6:54
I have also faced similar variable addressibility issues while using code generation. This happens while trying to use non-scalars (including arrays and structures). Lookup Table block requires Table Data and Breakpoint Data expressions to be addressable (i.e. the generated look-up function takes both parameters as pointers). If the expression is not addressable, code generation errors.
I do not have a workaround for this but the issue is not reproducible in R2024b. Kindly upgrade your MATLAB to the latest version.
I hope this resolves the issue!

Categorías

Más información sobre Nonlinearity en Help Center y File Exchange.

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by