putting initialisation of exported globals inside a function

1 回表示 (過去 30 日間)
Mandeep Panesar
Mandeep Panesar 2019 年 3 月 1 日
Hi,
Is there a way of putting the initialistion of exported globals inside a function when generating code as oppose to be initialised as part of the declaration?
For example, I would like DSL_CellTFilCoeff_gain to be set inside an initialisation funciton.
/* Exported block parameters */
real32_T DSL_CellTFilCoeff_gain = 1.0F;/* Variable: DSL_CellTFilCoeff_gain
* Referenced by: '<S23>/DSL_CellTemperatureServices'
*/
Thanks, Mandeep

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2012a

Community Treasure Hunt

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

Start Hunting!

Translated by