Is it possible to eliminate the BlockIO contents when generating code?

1 ビュー (過去 30 日間)
I am using MATLAB 2018b SIMULINK to generate c codes. Ater generating the c code in .h file I get two structures one is of dwork and one is blockIo.
My question is how can i delete the conents of BlockIO as I dont need them.
for example:
struct tag_RTM_hello {
BlockIO_hello *blockIO; => my interset is in this
D_Work_hello *dwork;
};

採用された回答

Monika Jaskolka
Monika Jaskolka 2021 年 6 月 10 日
You probably have to change your model configurations so that code generation makes these changes:
  4 件のコメント
Asang singh
Asang singh 2021 年 6 月 14 日
Hello Monika,
I got your point, and in order to avoid the generation of DWORK I have stopped using delay blocks. And for this I know that delay block is causing the generation of DWORK.
But as far as BLOCKIO's variables are concerned I am not sure what setting of only some variables are causing them to treated in this structure. If I get to know the setting of those variables then may be I can tweak them to not get generated.
Thanks.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by