| Using Simulink | ![]() |
Parameterizing Model References
Simulink allows you to parameterize references to models, i.e., use workspace variables to determine their behavior. You can parameterize a model in the following ways:
A global nontunable parameter is a MATLAB variable or a Simulink.Parameter object whose storage class is auto. The value of such a variable cannot be changed during simulation.
A global tunable parameter is a parameter specified by an object of Simulink.Parameter class that has a storage class other than auto. The value of such a variable can be changed during simulation, allowing you to change the behavior of the referenced models.
Model Referencing and the Inline Parameters Optimization
Simulink does not support the off setting of the inline parameters optimization (see Inline parameters) for models that contain Model blocks. Simulink ignores the settings in the Tunable Parameter dialog box (see Model Parameter Configuration Dialog Box) for models that contain Model blocks and for referenced models. To help you convert existing models to model referencing, Simulink provides a command that converts tunable parameters specified in the Tunable Parameter dialog box, which do not work with model referencing, to global tunable parameters that do work with model referencing. Type
at the MATLAB command line for more information.
| Creating a Model Reference | Using Model Arguments | ![]() |
© 1994-2005 The MathWorks, Inc.