Info

This question is closed. Reopen it to edit or answer.

Tunable settings in referenced models

3 views (last 30 days)
Kyle Harbert
Kyle Harbert on 1 Aug 2017
Closed: MATLAB Answer Bot on 20 Aug 2021
I have a project that requires concurrent execution. Because of this, I must use referenced models. My project was working as a collection of subsystems that I wished to convert to referenced models. Throughout development I’ve experienced issues with ‘tunablility’. I don’t want to tune anything at all. No tuning. I want to configure all system parameters at compile-time from workspace variables. I’ve painfully deduced how to avoid tunable settings errors so far, but since switching to referenced models, all this business has come back up again and I think I may be doing things wrong.
I think I’ve (again painfully) deduced what I need to do. Please confirm: If I want to statically initialize referenced model mask parameters from workspace variables I should: 1. Omit them from the ‘Model arguments (for referencing this model)’ field in the model’s ‘model workspace’ 2. Omit them from the ‘Model argument values (for this instance)’ field in the model block’s ‘block parameters’ menu. 3. Add them to the model workspace as Simulink parameters and initialize them. 4. Add them to the model reference block as mask parameters and set them to ‘tunable’. (Note: again, I don’t want to tune anything, but this setting appears to make things work…)

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!