How can I change the byte packing of structures generated from Simulink Coder?

조회 수: 4 (최근 30일)
I want to change byte packing of a structure from C++ code generated from Simulink Coder. I have modified cgt file like this but did not work :
%%Code insertion section (required)
These are required tokens. You can insert comments and other tokens in
%%between them, but do not change their order or remove them.
%<Includes>
#pragma pack(push)
#pragma pack(4)
%<Defines>
%<Types>
%<Enums>
#pragma pack(pop)
%<Definitions>
%<Declarations>
%<Functions>
I can't change cfp file because it is not visible, I think Configuration Parameters --> Code Generation --> Templates --> File Customization Template section is not available in C++ code generation.
Any help would be appreciated.
Best Regard Murat

답변 (0개)

카테고리

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

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by