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 次查看(过去 30 天)

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?

采纳的回答

MathWorks Support Team
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')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 AUTOSAR Blockset 的更多信息

标签

尚未输入任何标签。

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by