Why is a "dead signal" not generated during code generation with Embedded Coder?
12 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2024-8-2
回答: MathWorks Support Team
2024-8-22
I am using AUTOSAR and I have a few signals that are stubs and do not have any logic implemented with them. I'm trying to compile this code with a third-party toolbox, and I'm receiving this compilation error:
"my_sig_foo" is undefined
Why are the dead signals that I've defined in my SLX model not declared in the generated Embedded Coder code?
采纳的回答
MathWorks Support Team
2024-8-2
Right click on the signal and set it to be a "Test Point." This overrides the compiler optimizations.
This will force the signal to be generated, even if it has no logic attached to it.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AUTOSAR Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!