How to declare global variable in Simulink?
조회 수: 9 (최근 30일)
이전 댓글 표시
Hello,
I have set of signals in my model, I want them to declare as global variable(not local variables) in Autosar code generated from my model. How can I do this in simulink without use of MATLAB function, as I have many input signals. And these signals are coming through inport block.
Can I do it by changing configuration of inport/goto/from block- that will reflect on autosar generated code?
Thanks!
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 10월 3일
I have no information about autosar but see https://www.mathworks.com/matlabcentral/answers/606496-declare-global-variable-in-simulink?s_tid=srchtitle and also https://www.mathworks.com/matlabcentral/answers/1653710-global-variable-in-simulink#comment_2009495
참고 항목
카테고리
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!