if my storage class of signal is " Reusable(custom)",any setting to force the signal declared as local in my function.

5 ビュー (過去 30 日間)
Sai Neelam
Sai Neelam 2018 年 7 月 12 日
編集済み: Phani Teja 2019 年 4 月 30 日
Hi All, When i have declared a signal as "Reusable(custom)",after code generation using embedded coder,the is declared as Global variable. We don't want it to be global any setting to force the signal be declared as local in my function.
Regards, Sai kumar Neelam

回答 (2 件)

Fangjun Jiang
Fangjun Jiang 2018 年 7 月 12 日
just set the storage class as "Auto".
  1 件のコメント
Sai Neelam
Sai Neelam 2018 年 7 月 13 日
As my requirement is to use same signal as input and output, to use signal like that we must keep storage class as reusable.Because of reusable storage class by default it is creating temporary global declaration for my output variable. This leads to extra memory consumption. Could you please suggest me a method to achieve this?

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


Phani Teja
Phani Teja 2019 年 4 月 30 日
編集済み: Phani Teja 2019 年 4 月 30 日
Try it to customize your stoarge class Reusable using CSC designer GUI.
There you can create own package (mpt or simulink) and custom storage classes as per the need.

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by