MATLAB Answers

How to extract variables from the generated GRT build data?

2 views (last 30 days)
Radhakrishna Kothamasu
Radhakrishna Kothamasu on 1 Jul 2017
Answered: Abhisek Roy on 5 Jul 2017
I would like to extract the variables exist in the model from the .grt* build data.how can i do it?

  0 Comments

Sign in to comment.

Answers (1)

Abhisek Roy
Abhisek Roy on 5 Jul 2017
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'
*/
};
Regards,
Abhisek

  0 Comments

Sign in to comment.


Translated by