How to tell the Embedded Coder to not write zero to unconnected output ports

조회 수: 2 (최근 30일)
aida_p
aida_p 2018년 10월 16일
편집: aida_p 2018년 10월 16일
Hi,
I am using a Mux block in Simulink with 32 ports to create a bus signal with the storage class set to ImportedExternPointer. I would like to generate code from this signal so that the connected signals of the Mux block are written over pointers to memory. However, if I do not connect all the ports of the mux block, in my generated code the value 0 will be written to memory. Can I avoid this somehow? Can the Embedded Coder ignore the unconnected ports of the Mux in Simulink?
Thanks!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by