Code Generation - DATA structure elements
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!