How can I group a number of similar Simulink Outports so that Embedded Coder will define them as an array of variables in the resultant C code?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a Simulink model which has 30 signals named testPoint1 to testPoint30 connected to Outport blocks. Embedded Coder accordingly creates 30 variables of type volatile int32_T in the corresponding C code. Instead of this, I would like an array of variables to be created, named testPoint[]. Can anyone advise me how to achieve this, please.
댓글 수: 0
채택된 답변
Mark McBroom
2020년 1월 25일
As long as all signals are of the same type, you can merge them together into a vector using the vector concatenate block. https://www.mathworks.com/help/simulink/slref/vectorconcatenate.html
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 String에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!