Is edge detection (e.g., Rising, falling) in State flow supports code generation using embedded coder?

While generating code Error comes as "Error:Error: File: C:\Program Files\MATLAB\R2023b\rtw\c\tlc\public_api\diagnostics_api.tlc Line: 39 Column: 10 %exit directive: Simulink Coder Fatal: Custom Data Error: Empty DataObject record"
Please support me to resolve this issue.
Thank You

2 comentarios

Hi,
Could you share the model so that we can have a better understanding of why this issue occurs?
I have attached screenshot of model, Please refer it.

Iniciar sesión para comentar.

Respuestas (1)

This is a TLC (target-language compiler) error.
This error might be occuring because of some of the variables might be exceeding the maximum possible size for the variables.
To address this, I recommend reviewing the information provided in the data object usage table. This will help you assess the potential for stack size overflow.
Additionally, a viable workaround for this issue involves adjusting the configuration settings.
Specifically, you may consider setting the "aMaxStackVariableSize" configuration option to "inf" within the TLC options of your configuration set.
>> set_param(modelName,'TLCOptions','-aMaxStackVariableSize=inf')
You can read more about TLC parameters here: https://www.mathworks.com/help/rtw/ref/maximumstacksizebytes.html
Hope this helps!

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Productos

Versión

R2023b

Preguntada:

el 20 de Sept. de 2024

Respondida:

el 4 de Oct. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by