Question about Embedded Coder handling of tunable parameters
2 次查看(过去 30 天)
显示 更早的评论
I have two models using data dictionaries with Simulink Parameters having storage class SimulinkGlobal. One model references the parameter from a reference model and when I build that model using Embedded Coder it is generated as a global variable with prefix "rtP_". The second model has a parameter with the same storage class but the parameter is used at the top level of the model, and when Embedded Coder generates code the parameter gets put into a structure for "parameters (auto storage)". Why the difference in behavior that depends on where the parameter is used in the model hierarchy? I dumped the model configuration settings to an M file and compared and there is no difference in the model configuration that seems to be causing the change in the generated code.
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!