Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Tunable settings in referenced models

3 Ansichten (letzte 30 Tage)
Kyle Harbert
Kyle Harbert am 1 Aug. 2017
Geschlossen: MATLAB Answer Bot am 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…)

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by