Azzera filtri
Azzera filtri

Code Generation - DATA structure elements

1 visualizzazione (ultimi 30 giorni)
Pawel Blaszczyk
Pawel Blaszczyk il 15 Giu 2015
Hi,
I have following problem: I've created *.tlc wrapper to integrate automatically generated code with hand-written code. All model data is stored in Data_<model> structure which contains structures as Parameters_<model>, BlockIO_<model>, D_Work<model> and so on The problem is that depending on the model complexity some of stucutres are not generated (eg. if there is no memory states, D_Work is not created). Now, I'd like to have this strucure fixed to not change anything in the model - is it possible to force to generate the structure always with all data fields (even if they will be empty)?
Second issue with this optimization feature is that model_step() function interface is different, e.g. for one model you have:
Test_step( &( ((Data_EntityDLLx*)ptr)->param_ptr ),&( ((Data_EntityDLLx*)ptr)->blkIO_ptr),
&( ((Data_EntityDLLx*)ptr)->intern_ptr ), &( ((Data_EntityDLLx*)ptr)->pin ),
&( ((Data_EntityDLLx*)ptr)->pout ));
And for another one you have:
Test_step( &( ((Data_EntityDLLx*)ptr)->param_ptr ),
&( ((Data_EntityDLLx*)ptr)->intern_ptr ), &( ((Data_EntityDLLx*)ptr)->pin ),
&( ((Data_EntityDLLx*)ptr)->pout ));
It would be perfect if I can have the interface always the same :-)
PS. I am using ML/SL R2009b with RTW and RTW EC and I cannot shift for a newer one

Risposte (0)

Categorie

Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by