Table 8-2: Common Block Parameters
Parameter
|
Description
|
Values
|
AttributesFormat String
|
Specifies parameters to be displayed below block in a block diagram
|
string
|
BackgroundColor
|
Block icon background
|
black | {white} | red | green | blue | cyan | magenta | yellow | gray | lightBlue | orange | darkGreen
|
BlockDescription
|
Block description
|
text
|
BlockType
|
Block type
|
text
|
CloseFcn
|
Close callback
|
MATLAB expression
|
CompiledPortWidths
|
Structure of port widths
|
scalar and vector
|
CopyFcn
|
Copy callback
|
MATLAB expression
|
DeleteFcn
|
Delete callback
|
MATLAB expression
|
Description
|
User-specifiable description
|
text
|
DialogParameters
|
Names/attributes of parameters in blocks parameter dialog
|
structure
|
DropShadow
|
Display drop shadow
|
{off} | on
|
FontAngle
|
Font angle
|
(system-dependent) {normal} | italic | oblique
|
FontName
|
Font
|
{Helvetica}
|
FontSize
|
Font size
A value of -1 specifies that this block inherits the font size specified by the DefaultBlockFontSize model parameter.
|
{-1}
|
FontWeight
|
Font weight
|
(system-dependent) light | {normal} | demi | bold
|
ForegroundColor
|
Block name, icon, outline, output signals, and signal label
|
{black} | white | red | green | blue | cyan | magenta | yellow | gray | lightBlue | orange | darkGreen
|
InitFcn
|
Initialization callback
|
MATLAB expression
|
InputPorts
|
Array of input port locations
|
[h1,v1; h2,v2; ...]
|
LinkStatus
|
Link status of block
|
none |resolved | unresolved | implicit
|
LoadFcn
|
Load callback
|
MATLAB expression
|
ModelCloseFcn
|
Model close callback
|
MATLAB expression
|
Name
|
Block's name
|
string
|
NameChangeFcn
|
Block name change callback
|
MATLAB expression
|
NamePlacement
|
Position of block name
|
{normal} | alternate
|
ObjectParameters
|
Names/attributes of block's parameters
|
structure
|
OpenFcn
|
Open callback
|
MATLAB expression
|
Orientation
|
Where block faces
|
{right} | left | down | up
|
OutputPorts
|
Array of output port locations
|
[h1,v1; h2,v2; ...]
|
Parent
|
Name of the system that owns the block
|
string
|
ParentCloseFcn
|
Parent subsystem close callback
|
MATLAB expression
|
Position
|
Position of block in model window
|
vector [left top right bottom] not enclosed in quotation marks
|
PostSaveFcn
|
Postsave callback
|
MATLAB expression
|
PreSaveFcn
|
Presave callback
|
MATLAB expression
|
Selected
|
Block selected state
|
on | {off}
|
ShowName
|
Display block name
|
{on} | off
|
StartFcn
|
Start simulation callback
|
MATLAB expression
|
StopFcn
|
Termination of simulation callback
|
MATLAB expression
|
Tag
|
User-defined string
|
' '
|
Type
|
Simulink object type (read-only)
|
'block'
|
UndoDeleteFcn
|
Undo block delete callback
|
MATLAB expression
|
UserData
|
Any MATLAB data type
|
[ ]
|
UserDataPersistent
|
Save UserData in the model file.
|
on | {off}
|