Code Generation - DATA structure elements
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!