Simulink Coder- Tunable Constants Question
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
The code generated out of Simulink looks a bit off. I am trying to globally expose the following variable. (eventually will be a larger structure).
In the header file, the struct is defined as
/* Parameters (auto storage) */
struct Parameters_CompileAttemp_201107_ {
real_T TESTING; /* Variable: TESTING
* Referenced by: '<S4>/Constant8'
*/
};
But the parameter refers the struct as: extern Parameters_CompileAttemp_201107 CompileAttemp_20110705_P;
The struct type name in the definition does not match the with the one referenced in the parameter: Parameters_CompileAttemp_201107 Parameters_CompileAttemp_201107_
Can someone help with the slight difference?
thanks, Becky
1 Kommentar
Kaustubha Govind
am 22 Jul. 2011
Becky: Does the generated code fail to compile? If it does compile, perhaps there is a typedef or #define somewhere that reconciles the difference?
Akzeptierte Antwort
Fangjun Jiang
am 22 Jul. 2011
extern Parameters_CompileAttemp_201107 CompileAttemp_20110705_P_
It declares a variable called "CompileAttemp_20110705_P_". Its type is "Parameters_CompileAttemp_201107".
2 Kommentare
Fangjun Jiang
am 22 Jul. 2011
Without your modification, does the auto-gen code compile? You are not supposed to hand-modify the auto-gen code.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!