Simulink.MaskParameter Class
R2026bNamespace: Simulink
Set or modify the properties of a mask parameter
Description
Use a Simulink.MaskParameter object to programmatically set or modify
the properties of a mask parameter, such as its type, value, callback, and dialog
settings.
Use an instance of Simulink.MaskParameter to set the
properties of a mask parameter.
Properties
Mask parameter type, specified as character vector
Data Types: char | string
The options that are displayed within a popup or combobox or listbox parameter, specified as a cell array.
Data Types: cell
Name of the mask parameter, specified as a character vector. This name is assigned to the mask workspace variable created for the mask parameter. The mask parameter name must not match the built-in parameter name.
Data Types: char
Display name for the mask parameter, specified as a character vector. This name appears as the label associated with the parameter on the mask dialog box.
Data Types: char
Mask parameter value, specified as a character vector. For example, the default
value for Checkbox is 'on' while the default value
for Listbox is {''} and accepts a cell array of
character vectors.
Data Types: char
Option to evaluate the mask parameter, specified as "on or
"off".
Option to decide the tunable behavior of a mask parameter, specified as
"on" or "off" or
"run-to-run". The available options are:
"on"— Enables changes to the mask parameter value during simulation. Each time you make a change, the model recompiles."off"— Disables changes to the mask parameter values during simulation."run-to-run"— Allows changes to the mask parameter value between simulation runs. Simulink® applies the changes when the simulation restarts but does not reflect them during an active simulation.
Data Types: char | string
Option to save the mask parameter values in the model file, specified as
"off or "on".
"off"— Simulink saves the mask parameter value with the model."on"— Simulink does not save the mask parameter value with the model.
Option to hide the mask parameter value in the mask dialog box, specified as
"off or "on".
Option to edit the mask parameter value in the mask dialog box, specified as
"off or "on".
Option to enable the mask parameter in the mask dialog box, specified as
"on" or "off".
Option to show the mask parameter in the mask dialog box, specified as
"on" or "off".
Option to enable tooltips for the mask parameter, specified as
"on" or "off".
Callback code for the mask parameter, specified as a character vector. The callback code executes when a user changes the parameter value in the mask dialog box. If the callback for the parameter is in a callback file, then this property remains empty.
Data Types: char | string
Name of the tab container in which the mask parameter is displayed in the mask dialog box, specified as a character vector.
Data Types: char
Alternative name for the mask parameter, specified as a character vector.
Data Types: char
Layout options for the parameter in the mask dialog box, specified as a character vector or logical value. The location of the parameter in the mask dialog box such as the row location, prompt location is specified. Additionally horizontal stretch or shrink of the mask parameter is also specified.
Data Types: object
Constraint associated with the mask parameter, specified as a character vector. To
associate a constraint programmatically the constraint must be already available. To
associate a constraint in a MAT file, use the format
<matfilename>:<constraintname>.
Data Types: char
Methods
Version History
Introduced in R2006aUse the Simulink.MaskParameter.Behavior object to access
ReadOnly, Hidden, and NeverSave
parameter behavior properties. Support for accessing these properties directly from the
Simulink.MaskParameter class will be removed in a future
release.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)