Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Parameterize Instances of a Reusable Referenced Model - only R2017a?

2 vues (au cours des 30 derniers jours)
Matthias Weber
Matthias Weber le 16 Juin 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi there,
I want to use several parametrized instances of a reusable referenced model. However, I am not sure if this is only doable with the R2017a release (I am using an odler version) or if I miss something else.
I have added several Simulink parameters in the model workspace of the model I want to reference and instantiate as described here. The problem is that I cannot find the "Argument" column with a checkbox which should be in the "Contents" pane of the model workspace in the Model Explorer.
Screenshot taken from the documentation link above: <https://de.mathworks.com/help/simulink/ug/xxref_mdlwksp.png>
Is there any other way to work around this? I have tried to mask the model, but this seems only doable for subsystems. But: when I have to change parts I don't want to change every copied subsystem - this is why I think referenced model's are the way to go here.
Current examples for use cases:
  • instances of custom counters (with different values for reset, increment and overflow limit for each instance)
  • instances of custom peripheral drivers (with different GPIO port and GPIO pin numbers for each instance to allow for independent control of each pin; implementation is based on an S-function block)
Kind regards,
Matthias

Réponses (0)

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by