Main Content

Simulink.MaskParameter class

Package: Simulink

Control mask parameters programmatically

Description

Use an instance of Simulink.MaskParameter to set the properties of a mask parameter.

Properties

expand all

Mask parameter type, specified as character vector

Data Types: char | string

Type options of 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.

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 mask parameter, specified as a logical.

Data Types: logical

Option to change the mask parameter during simulation, specified as logical value.

Data Types: logical

Option to save the mask parameter value in the model file, specified as a logical.

Data Types: logical

Option to hide the mask parameter in the mask dialog, specified as a logical.

Data Types: logical

Option to edit the mask parameter in the mask dialog, specified as a logical.

Data Types: logical

Option to enable the mask parameter in the mask dialog, specified as a logical.

Data Types: logical

Option to show the mask parameter in the mask dialog, specified as a logical.

Data Types: logical

Option to enable tooltips for the mask parameter, specified as a logical.

Data Types: logical

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.

Data Types: char

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, specified as a character vector. The location of the parameter in the mask dialog such as the row location, prompt location is specified. Additionally horizontal stretch or shrink of the mask parameter is also specified.

Data Types: char

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

Version History

Introduced in R2006a