Azzera filtri
Azzera filtri

How to resolve error ""Error:The storage class of the signal connected to 'Output Port 1' of 'autosarTe​stMdl/Subs​ystem/Even​t Receive' is global, thus the generated code is not reusable." when generating AUTOSAR Adaptive code in R2024a?

1 visualizzazione (ultimi 30 giorni)

I am getting this error when generating code with AUTOSAR Blockset for AUTOSAR Adaptive:

"Error:The storage class of the signal connected to 'Output Port 1' of 'autosarTestMdl/Subsystem/Event Receive' is global, thus the generated code is not reusable. Consider using storage class 'Auto', setting Code interface packaging to 'Nonreusable function', or setting Multi-instance code error diagnostic to 'None' or 'Warning'"
How to fix it?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 17 Mag 2024
Currently the only option to resolve this is mentioned in the error message itself. The diagnostic option cannot be set to None or Warning using the Configuration UI, which is why you need to use the Simulink API:
set_param(bdroot,'MultiInstanceErrorCode','None')

Più risposte (0)

Categorie

Scopri di più su AUTOSAR Blockset in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Prodotti


Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by