How do I solve the Model reference argument problem?
Show older comments
Hello, I'm trying to replace the Simulink model that use Embedded Coder R2014b with R2018a.
When I simulate the model using Model Reference Arguments in R2014b, it works.
Unfortunately, when I simulate the model in R2018a, it doesn't work because of the non-tunable parameter 'Delay Length' of the discrete 'Delay' block.
In the referenced model, I use Accelerator mode to simulate the model.
I make the Simulink.Parameter to use model reference arguments. And then I use the parameter in each referenced Model Workspace.
So, I changed referenced model parameter (simulink.Parameter) as shown below. But it still does not work.
% enginenseframeparam.CoderInfo.StorageClass = 'ImportedExtern';
enginenseframeparam.CoderInfo.StorageClass = 'SimulinkGlobal';
% enginenseframeparam.CoderInfo.StorageClass = 'Auto
If you are familiar with this cause, could you give me some advice? Thank you for your advice.
Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!