How to extract variables from the generated GRT build data?

1 回表示 (過去 30 日間)
Radhakrishna Kothamasu
Radhakrishna Kothamasu 2017 年 7 月 1 日
回答済み: Abhisek Roy 2017 年 7 月 5 日
I would like to extract the variables exist in the model from the .grt* build can i do it?

回答 (1 件)

Abhisek Roy
Abhisek Roy 2017 年 7 月 5 日
Hi Radhakrishna,
In the generated code folder (model_name)_grt_rtw, you will find one (model_name)_data.c file. In that file all the variables are defined. The name of the variables will be changed but they can be found out in the comments. Here is a snippet for your reference -
/* Block parameters (auto storage) */
P_test_T test_P = {
3.0, /* Variable: a
* Referenced by: '<Root>/Constant'
6.0 /* Variable: b
* Referenced by: '<Root>/Constant1'


Help Center および File ExchangeModel References についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by