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!