Documentation Center

  • Trial Software
  • Product Updates

Model Parameters

About Model Parameters

You can query and/or modify the properties (parameters) of a Simulink® diagram from the command line. Parameters that describe a model are known as model parameters, while parameters that describe a Simulink block are known as block parameters. Block parameters that are common to Simulink blocks are described as common block parameters. There are also block-specific parameters that are specific to particular blocks. Finally, there are mask parameters, which are parameters that describe a masked block.

The model and block properties also include callbacks, which are commands that execute when a certain model or block event occurs. These events include opening a model, simulating a model, copying a block, opening a block, etc.

Parameter values must be specified as quoted strings. The string contents depend on the parameter and can be numeric (scalar, vector, or matrix), a variable name, a filename, or a particular value. The Values column shows the type of value required, the possible values (separated with a vertical line), and the default value enclosed in braces.

The following sections list parameters that you can set for Simulink models blocks, or signals, using the set_param command.

This table lists and describes, in alphabetical order, parameters that describe a model. The table also includes model callback parameters (see Callbacks for Customized Model Behavior). The Description column indicates where you can set the value on a dialog box. For examples, see Examples of Setting Model Parameters.

Model Parameters in Alphabetical Order

Parameter

Description

Values

AbsTol

Specify the largest acceptable solver error, as the value of the measured state approaches zero.

Set by Absolute tolerance on the Solver pane of the Configuration Parameters dialog box.

string — {'auto'}

AccelVerboseBuild

Controls the verbosity level during code generation for Simulink Accelerator mode, model reference Accelerator mode, and Rapid Accelerator mode.

Set by Verbose accelerator builds on the Optimization pane of the Configuration Parameters dialog box.

string — {'off'} | 'on'

AlgebraicLoopMsg

Specifies diagnostic action to take when there is an algebraic loop.

Set by Algebraic loop on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

ArrayBoundsChecking

Select the diagnostic action to take when blocks write data to locations outside the memory allocated to them.

Set by Array bounds exceeded on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

ArtificialAlgebraicLoopMsg

Specifies diagnostic action to take if algebraic loop minimization cannot be performed for a subsystem because an input port of that subsystem has direct feedthrough.

Set by Minimize algebraic loop on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

AssertControl

Enable model verification blocks in the current model either globally or locally.

Set by Model Verification block enabling on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'UseLocalSettings'} | 'EnableAll' | 'DisableAll'

AutoInsertRateTranBlk

Specify whether Simulink software inserts hidden Rate Transition blocks between blocks that have different sample rates.

Set by Automatically handle rate transition for data transfer on the Solver pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

BlockDescriptionStringDataTip

Specifies whether to display the user description string for a block as a data tip.

In the Simulink Editor, set by Description on the Display > Blocks > Block Tool Tip Options menu.

string — 'on' | {'off'}

BlockNameDataTip

Specifies whether to display the block name as a data tip. In the Simulink Editor, set by Block Name on the Display > Blocks > Block Tool Tip Options menu.

string — 'on' | {'off'}

BlockParametersDataTip

Specifies whether to display a block parameter in a data tip.

In the Simulink Editor, set by Parameter Names & Values on the Display > Blocks > Block Tool Tip Options menu.

string — 'on' | {'off'}

BlockPriorityViolationMsg

Select the diagnostic action to take if Simulink software detects a block priority specification error.

Set by Block priority violation on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — {'warning'} | 'error'

BlockReduction

Enables block reduction optimization.

Set by Block reduction on the Optimization pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

BlockReductionOpt

See BlockReduction parameter for more information.

 

BooleanDataType

Enable Boolean mode.

Set by Implement logic signals as Boolean data (vs. double) on the Optimization pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

BrowserLookUnderMasks

Show masked subsystems in the Model Browser.

In the Simulink Editor, set by Include Systems with Mask Parameters on the View > Model Browser menu.

string — 'on' | {'off'}

BrowserShowLibraryLinks

Show library links in the Model Browser.

In the Simulink Editor, set by Include Library Links on the View > Model Browser menu.

string — 'on' | {'off'}

BufferReusableBoundary

For internal use.

 

BufferReuse

Enable reuse of block I/O buffers.

Set by Reuse block outputs on the Optimization > Signals and Parameters pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

BusNameAdapt

Repair broken selections in the Bus Selector and Bus Assignment block parameters dialog boxes that are due to upstream bus hierarchy changes.

Set by Repair bus selections on the Diagnostics > Connectivity pane of the Configuration Parameters dialog box.

string — {'WarnAndRepair'} | 'ErrorWithoutRepair'

BusObjectLabelMismatch

Select the diagnostic action to take if the name of a bus element does not match the name specified by the corresponding bus object.

Set by Element name mismatch on the Diagnostics > Connectivity pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

CheckExecutionContextPreStartOutputMsg

Specify whether to display a warning if Simulink software detects potential initial output differences from previous releases.

Set by Check preactivation output of execution context on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

CheckExecutionContextRuntimeOutputMsg

Specify whether to display a warning if Simulink software detects potential output differences from previous releases.

Set by Check runtime output of execution context on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

CheckForMatrixSingularity

See CheckMatrixSingularityMsg parameter for more information.

 

CheckMatrixSingularityMsg

Select the diagnostic action to take if the Product block detects a singular matrix while inverting one of its inputs in matrix multiplication mode.

Set by Division by singular matrix on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

CheckModelReferenceTargetMessage

Select the diagnostic action to take if Simulink software detects a target that needs to be rebuilt.

Set by Never rebuild diagnostic on the Model Referencing pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

CheckSSInitialOutputMsg

Enable checking for undefined initial subsystem output.

Set by Check undefined subsystem initial output on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

CloseFcn

Set the close callback function, which can be a command or a variable.

Set by Model close function on the Callbacks pane of the Model Properties dialog box.

See Create Model Callbacks for more information.

string — {''}

CompiledBusType

Return information about whether the signal connected to a port is not a bus, or whether it is a virtual or nonvirtual bus.

(Read-only) Get with the get_param command. Specify a port or line handle. See View Information about Buses.

Return values are'NOT_BUS', VIRTUAL_BUS, and NON_VIRTUAL_BUS

CompiledModelBlockNormalModeVisibility

For a top model that is being simulated or that is in a compiled state, return information about which Model blocks have Normal Mode Visibility enabled.

Return values indicate which Model blocks have Normal Mode Visibility enabled.

ConditionallyExecuteInputs

Enable conditional input branch execution optimization.

Set by Conditional input branch execution on the Optimization pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

ConfigurationManager

Configuration manager for this model.

string — {'None'}

ConsecutiveZCsStepRelTol

Relative tolerance associated with the time difference between zero-crossing events.

Set by Time tolerance on the Solver pane of the Configuration Parameters dialog box.

string — {'10*128*eps'}

ConsistencyChecking

Select the diagnostic action to take if S-functions have continuous sample times, but do not produce consistent results when executed multiple times.

Set by Solver data inconsistency on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

ContinueFcn

Continue simulation callback.

Set by Simulation continue function on the Callbacks pane of the Model Properties dialog box.

string — {''}

CovCompData

If CovHtmlReporting is set to on and CovCumulativeReport is set to on, this parameter specifies cvdata objects containing additional model coverage data to include in the model coverage report.

Set by Additional data to include in report (cvdata objects) on the Reporting pane of the Coverage Settings dialog box.

string — {''}

CovCumulativeReport

If CovHtmlReporting is set to on, this parameter allows the CovCumulativeReport and CovCompData parameters to specify the number of coverage results displayed in the model coverage report.

If set to on, the Simulink Verification and Validation™ software displays the coverage results from successive simulations in the report.

If set to off, the software displays the coverage results for the last simulation in the report.

Set by the Cumulative runs (on) / Last run (off) options on the Reporting pane of the Coverage Settings dialog box.

string — 'on' | {'off'}

CovCumulativeVarName

If CovSaveCumulativeToWorkspaceVar is set to on, the Simulink Verification and Validation software saves the results of successive simulations in the workspace variable specified by this property.

Set by cvdata object name below the selected Save cumulative results in workspace variable check box on the Results pane of the Coverage Settings dialog box.

string — {'covCumulativeData'}

CovExternalEMLEnable

Enables coverage for any external MATLAB® functions that MATLAB functions for code generation call in your model. The functions can be defined in a MATLAB Function block or in a Stateflow® chart. Enable this feature by checking Coverage for MATLAB Files on the Coverage Settings dialog box.

string — 'on' | {'off'}

CovForceBlockReductionOff

If CovForceBlockReductionOff is set to on, the Simulink Verification and Validation software ignores the value of the Simulink Block reduction parameter. The software provides coverage data for every block in the model that collects coverage.

string — {'on'} | 'off'

CovHTMLOptions

If CovHtmlReporting is set to on, use this parameter to select from a set of display options for the resulting model coverage report.

On the Reporting pane of the Coverage Settings dialog box, select HTML Settings to open a dialog box for selecting these options.

String of appended character sets separated by a space. HTML options are enabled or disabled through a value of 1 or 0, respectively, in the following character sets (default values shown):

  • '-aTS=1' — Include each test in the model summary

  • '-bRG=1' — Produce bar graphs in the model summary

  • '-bTC=0' — Use two color bar graphs (red, blue)

  • '-hTR=0' — Display hit/count ratio in the model summary

  • '-nFC=0' — Do not report fully covered model objects

  • '-scm=1' — Include cyclomatic complexity numbers in summary

  • '-bcm=1' — Include cyclomatic complexity numbers in block details

  • '-xEv=0' — Filter Stateflow events from report

CovHtmlReporting

Set to on to tell the Simulink Verification and Validation software to create an HTML report containing the coverage data at the end of simulation.

Set by Generate HTML report on the Reporting pane of the Coverage Settings dialog box.

string — {'on'} | 'off'

CovMetricSettings

Selects coverage metrics for a coverage report.

Coverage metrics are enabled by selecting the check boxes for individual coverages in the Coverage metrics section of the Coverage pane of the Coverage Settings dialog box.

Enable options 's' and 'w' by selecting Treat Simulink Logic blocks as short-circuited and Warn when unsupported blocks exist in model, respectively, on the Options pane of the Coverage Settings dialog box.

Disable option 'e' by selecting Display coverage results using model coloring on the Results pane of the Coverage Settings dialog box.

string — {'dw'}

Each order-independent character in the string enables a coverage metric or option as follows:

  • 'd' — Enable decision coverage

  • 'c' — Enable condition coverage

  • 'm' — Enable MCDC coverage

  • 't' — Enable lookup table coverage

  • 'r' — Enable signal range coverage

  • 'z' — Enable signal size coverage

  • 'o' — Enable coverage for Simulink Design Verifier™ blocks

  • 's' — Treat Simulink logic blocks as short-circuited

  • 'w' — Warn when unsupported blocks exist in model

  • 'e' — Eliminate model coloring for coverage results

CovModelRefEnable

If CovModelRefEnable is set to on or all, the Simulink Verification and Validation software generates coverage data for the entire model.

Set by Coverage for referenced models on the Coverage pane of the Coverage Settings dialog box.

string — 'on' | {'off'} | 'all' | 'filtered'

CovModelRefExcluded

If CovModelRefEnable is set to filtered, this parameter stores a comma-separated list of referenced models for which coverage is disabled.

Set by selecting Coverage for referenced models on the Coverage pane of the Coverage Settings dialog box and then clicking Select Models.

string — {''}

CovNameIncrementing

If CovSaveSingleToWorkspaceVar is set to on, setting CovNameIncrementing to on causes the Simulink Verification and Validation software to append numerals to the workspace variable names for results so that earlier results are not overwritten (for example, covdata1, covdata2, etc.)

Set by Increment variable name with each simulation below the selected Save last run in workspace variable check box on the Results pane of the Coverage Settings dialog box.

string — 'on' | {'off'}

CovPath

Model path of the subsystem for which the Simulink Verification and Validation software gathers and reports coverage data.

Set by selecting Coverage for this model: <model name> on the Coverage pane of the Coverage Settings dialog box and then clicking Select Subsystem.

string — {'/'}

CovReportOnPause

Specifies that when you pause during simulation, the model coverage report appears in updated form, with coverage results up to the current pause or stop time.

Set by Update results on pause on the Results pane of the Coverage Settings dialog box.

string — {'on'} | 'off'

CovSaveCumulativeToWorkspaceVar

If set to on, the Simulink Verification and Validation software accumulates and saves the results of successive simulations in the workspace variable specified by CovCumulativeVarName.

Set by Save cumulative results in workspace variable on the Results pane of the Coverage Settings dialog box.

string — {'on'} | 'off'

CovSaveName

If CovSaveSingleToWorkspaceVar is set to on, the Simulink Verification and Validation software saves the results of the last simulation run in the workspace variable specified by this property.

Set by cvdata object name below the selected Save last run in workspace variable check box on the Results pane of the Coverage Settings dialog box.

string — {'covdata'}

CovSaveSingleToWorkspaceVar

If set to on, the Simulink Verification and Validation software saves the results of the last simulation run in the workspace variable specified by CovSaveName.

Set by Save last run in workspace variable on the Results pane of the Coverage Settings dialog box.

string — {'on'} | 'off'

Created

Date and time model was created.

Set by Created on on the History pane of the Model Properties dialog box.

See Viewing and Editing the Model History Log for more information.

string

Creator

Name of model creator.

Set by Created by on the History pane of the Model Properties dialog box.

See Viewing and Editing the Model History Log for more information.

string

CurrentBlock

For internal use.

 

CurrentOutputPort

For internal use.

 

DataLoggingOverride

A Simulink.SimulationData.ModelLoggingInfo object that specifies the signal logging override settings for a model.

See Override Signal Logging Settings.

Simulink.SimulationData.ModelLoggingInfo{'OverrideSignals'} | 'LogAllAsSpecifiedInModel'

DataTransfer

future reA Simulink.GlobalDataTransfer object that configures data transfers for models configured for concurrent execution.

string — 'on' | {'off'}

DataTypeOverride

Specifies data type used to override fixed-point data types.

Set by Data type override on the Fixed-Point Tool.

string — {'UseLocalSettings'} | 'ScaledDouble' | 'Double' | 'Single' | 'Off'

Decimation

Specify that Simulink software output only every N points, where N is the specified decimation factor.

Set by Decimation on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'1'}

DefaultUnderspecifiedDataType

Specify data type to use if Simulink cannot infer the type of a signal during data type propagation.

Set by Default for underspecified data type on the Optimization pane of the Configuration Parameters dialog box.

string — {'double'} | 'single'

DeleteChildFcn

Delete child callback function.

Created on the Callbacks pane of the Block Properties dialog box.

See Create Block Callbacks for more information.

string — {''}

Description

Description of this model.

Set by Model description on the Description pane of the Model Properties dialog box.

string — {''}

Dirty

If the parameter is on, the model has unsaved changes.

string — 'on' | {'off'}

DiscreteInheritContinuousMsg

Specifies diagnostic action to take when a Unit Delay block inherits a continuous sample time.

Set by Discrete used as continuous on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

DisplayBdSearchResults

For internal use.

 

DisplayBlockIO

For internal use.

 

DisplayCallgraphDominators

For internal use

 

DisplayCompileStats

For internal use.

 

DisplayCondInputTree

For internal use.

 

DisplayCondStIdTree

For internal use.

 

DisplayErrorDirections

For internal use.

 

DisplayInvisibleSources

For internal use.

 

DisplaySortedLists

For internal use.

 

DisplayVectorAndFunctionCounts

For internal use.

 

DisplayVectPropagationResults

For internal use.

 

Echo

For internal use.

 

EnableOverflowDetection

For internal use.

 

ExecutionContextIcon

Show execution context bars on conditional subsystems that do not propagate execution context across the subsystem boundaries.

In the Simulink Editor, set by Execution Context Indicator on the Display > Signals & Ports menu.

string — 'on' | {'off'}

ExplicitPartitioning

Specifies whether or not to manually map tasks (explicit mapping) or use the rate-based tasks.

string — 'on' | {'off'}

ExpressionFolding

Enables expression folding.

Set by Eliminate superfluous local variables (Expression folding) on the Optimization > Signals and Parameters pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

ExternalInput

Names of MATLAB workspace variables used to designate data and times to be loaded from the workspace.

Set by the Input field on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'[t, u]'}

ExtMode...

Parameters whose names start with ExtMode apply to Simulink External Mode.

For more information, see External Mode.

 

ExtrapolationOrder

Extrapolation order of the ode14x implicit fixed-step solver.

Set by Extrapolation order on the Solver pane of the Configuration Parameters dialog box.

integer — 1 | 2 | 3 | {4}

FcnCallInpInsideContextMsg

Specifies diagnostic action to take when Simulink software must compute any function-call subsystem inputs directly or indirectly during execution of a call to a function-call subsystem.

Set by Context-dependent inputs on the Connectivity Diagnostics pane of the Configuration Parameters dialog box.

string — {'EnableAllAsError'} | 'EnableAllAsWarning' | 'UseLocalSettings' | 'DisableAll'

    Note:   The Use local settings and Disable all settings are maintained for backward compatibility, but may be deprecated in a future release.

FileName

For internal use.

 

FinalStateName

Names of final states to save to the workspace after a simulation ends.

Set by the Final states field on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'xFinal'}

FixedStep

Fixed-step size.

Set by Fixed step size (fundamental sample time) on the Solver pane of the Configuration Parameters dialog box.

string — {'auto'}

FixptConstOverflowMsg

Specifies diagnostic action to take when a fixed-point constant underflow occurs during simulation.

Set by Detect overflow on the Type Conversion Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

FixptConstPrecisionLossMsg

Specifies diagnostic action to take when a fixed-point constant precision loss occurs during simulation.

Set by Detect precision loss on the Type Conversion Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

FixptConstUnderflowMsg

Specifies diagnostic action to take when a fixed-point constant underflow occurs during simulation.

Set by Detect underflow on the Type Conversion Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

FixPtInfo

For internal use.

 

FollowLinksWhenOpeningFromGotoBlocks

Specifies whether to search for Goto tags in libraries referenced by the model when opening the From block dialog box.

string — 'on' | {'off'}

ForceArrayBoundsChecking

For internal use.

 

ForceConsistencyChecking

For internal use.

 

ForceModelCoverage

For internal use.

 

ForwardingTable

Specifies the forwarding table for this library.

See Forwarding Tables for more information.

string — {{'old_path_1', 'new_path_1'} ... {'old_path_n', 'new_path_n'}}

ForwardingTableString

For internal use.

 
GeneratePreprocessorConditionals

Globally controls whether generated code contains preprocessor conditionals. This parameter is relevant only to code generation, and has no effect on the behavior of a model in Simulink.

The parameter is available only for an ERT target when Inline parameters is selected. Set by Configuration Parameters > Code Generation > Interface > Generate preprocessor conditionals. See About Variant Systems for more information.

string — {'Use local settings'} | 'off' | 'on'

GridSpacing

Has no effect in Simulink Editor. This parameter will be removed in a future release.

integer — {20}

Handle

Handle of the block diagram for this model.

double

HiliteAncestors

For internal use.

 

IgnoreBidirectionalLines

For internal use.

 

InheritedTsInSrcMsg

Message behavior when the sample time is inherited.

Set by Source block specifies -1 sample time on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

InitFcn

Function that is called when this model is first compiled for simulation.

Set by Model initialization function on the Callbacks pane of the Model Properties dialog box.

See Create Model Callbacks for more information.

string — {''}

InitialState

Initial state name or values.

Set by the Initial state field on the Data Import/Export pane of the Configuration Parameters dialog box.

variable or vector — {'xInitial'}

InitialStep

Initial step size.

Set by Initial step size on the Solver pane of the Configuration Parameters dialog box.

string — {'auto'}

InlineParams

Enable inline of parameters in generated code.

Set by Inline parameters on the Optimization > Signals and Parameters pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

InsertRTBMode

Control whether the Rate Transition block parameter Ensure deterministic data transfer (maximum delay) is set for auto-inserted Rate Transition blocks.

Set by Deterministic data transfer on the Solver pane of the Configuration Parameters dialog box.

string — 'Always' | {'Whenever possible'} | 'Never (minimum delay)'

InspectSignalLogs

Enable Simulink software to display logged signals in the Simulation Data Inspector tool at the end of a simulation or whenever you pause the simulation.

Set by Record and inspect simulation output on the Data Import/Export pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

Int32ToFloatConvMsg

Specify message behavior when a 32-bit integer is converted to a single-precision float.

Set by 32-bit integer to single precision float conversion on the Type Conversion Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'}

IntegerOverflowMsg

Specify message behavior when an integer overflow occurs.

Set by Detect overflow in the Signals section on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

InvalidFcnCallConnMsg

Specify message behavior when an invalid function-call connection exists.

Set by Invalid function-call connection on the Connectivity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

Jacobian

For internal use.

 

LastModifiedBy

User name of the person who last modified this model.

string

LastModifiedDate

Date used for version control.

string

LibraryLinkDisplay

Displays the blocks in the model that are linked or have disabled or modified links.

In the Simulink Editor, set by Library Links on the Display menu.

can't

string — 'none'| {'disabled'} |'user' | 'all'

Set to none, does not display the link badge on the block.

Set to disabled, displays the disabled link badge on the block.

Set to user, displays only links to the user libraries.

Set to all, displays all links.

LibraryType

For internal use.

 

LifeSpan

Specify how long (in days) an application that contains blocks depending on elapsed or absolute time should be able to execute before timer overflow.

Set by Application lifespan (days) on the Optimization pane of the Configuration Parameters dialog box.

string — {'inf'} | any positive, nonzero scalar value

LimitDataPoints

Specify that the number of data points exported to the MATLAB workspace be limited to the number specified.

Set by the Limit data points to last check box on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

LinearizationMsg

For internal use.

 

Lines

For internal use.

 

LoadExternalInput

Load input from workspace.

Set by the Input check box on the Data Import/Export pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

LoadInitialState

Load initial state from workspace.

Set by the Initial state check box on the Data Import/Export pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

Location

For internal use.

 

Lock

Lock or unlock a block library. Setting this parameter to on prevents a user from inadvertently changing a library.

string — 'on' | {'off'}

LockLinksToLibrary

Lock or unlock links to a library. Setting this parameter to on prevents a user from inadvertently changing linked blocks from the Simulink Editor.

string — 'on' | {'off'}

MAModelExclusionFile

Specifies the location of the Model Advisor exclusion file.

Set by the File Name field on the Model Advisor Exclusion Editor dialog box.

string — {' '}

MaxConsecutiveMinStep

Maximum number of minimum step size violations allowed during simulation. This option appears when the solver type is Variable-step and the solver is an ode one.

Set by Number of consecutive min steps on the Solver pane of the Configuration Parameters dialog box.

string — {'1'}

MaxConsecutiveZCs

Maximum number of consecutive zero crossings allowed during simulation. This option appears when the solver type is Variable-step and the solver is an ode one.

Set by Number of consecutive zero crossings on the Solver pane of the Configuration Parameters dialog box.

string — {'1000'}

MaxConsecutiveZCsMsg

Specifies diagnostic action to take when Simulink software detects the maximum number of consecutive zero crossings allowed. This option appears when the solver type is Variable-step and the solver is an ode one.

Set by Consecutive zero crossings violation on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

MaxDataPoints

Maximum number of output data points to save.

Set by the Limit data points to last field on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'1000'}

MaxMDLFileLineLength

Controls the line lengths in the model file. Use this to avoid line-wrapping, which can be important for source control tools.

Specifies the maximum length in bytes, which may different from the number of characters in Japanese, and is different from the number of columns when tabs are present.

integer — -1 (unlimited) or >= 80.

Default is 120.

MaxNumMinSteps

Maximum number of times the solver uses the minimum step size.

string — {'-1'}

MaxOrder

Maximum order for ode15s.

Set by Maximum order on the Solver pane of the Configuration Parameters dialog box.

string — '1' | '2' | '3' | '4' | {'5'}

MaxStep

Maximum step size.

Set by Max step size on the Solver pane of the Configuration Parameters dialog box.

string — {'auto'}

MdlSubVersion

For internal use

 

MergeDetectMultiDrivingBlocksExec

Select the diagnostic action to take when the software detects a Merge block with more than one driving block executing at the same time step.

Set by Detect multiple driving blocks executing at the same time step on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

Metadata

Names and attributes of arbitrary data associated with the model. To extract this metadata structure without needing to load the model, use the method Simulink.MDLInfo.getMetadata.

Structure. Fields can be strings, numeric matrices of type "double", or more structures.

MinMaxOverflowArchiveData

For internal use

 

MinMaxOverflowArchiveMode

Logging type for fixed-point logging.

Set by Overwrite or merge model simulation results in the Fixed-Point Tool.

string — {'Overwrite'} | 'Merge'

MinMaxOverflowLogging

Setting for fixed-point logging.

Set by Fixed-point instrumentation mode in the Fixed-Point Tool.

string — {'UseLocalSettings'} | 'MinMaxAndOverflow' | 'OverflowOnly' | 'ForceOff'

MinStep

Minimum step size for the solver.

Set by Min step size on the Solver pane of the Configuration Parameters dialog box.

string — {'auto'}

MinStepSizeMsg

Message shown when minimum step size is violated.

Set by Min step size violation on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — {'warning'} | 'error'

ModelBlockNormalModeVisibility

Use with set_param to set Normal Mode Visibility on for the specified Model blocks.

You can set this parameter with the Model Block Normal Mode Visibility dialog box. For details, see Model Block Normal Mode Visibility Dialog Box.

With set_param, use an array of Simulink.BlockPath objects or cell array of cell arrays of strings, with the strings being paths to individual blocks or models.

With set_param, an empty array specifies to use the Simulink default selection for the instance to have Normal Mode Visibility enabled.

ModelBlockNormaModeVisiblityBlockPath

Return information about which Model blocks have Normal Mode Visibility enabled. Use with a model that you are editing.

Return values indicate which Model blocks have Normal Mode Visibility enabled. See Normal Mode Visibility.

ModelBrowserVisibility

Show the Model Browser.

In the Simulink Editor, set by Model Browser on the View menu.

string — 'on' | {'off'}

ModelBrowserWidth

Width of the Model Browser pane in the model window. To display the Model Browser pane, see the ModelBrowserVisibility parameter.

integer — {200}

ModelDataFile

For internal use.

string — {''}

ModelDependencies

List of model dependencies.

Set by Model dependencies on the Model Referencing pane of the Configuration Parameters dialog box.

string — {''}

ModelReferenceCSMismatchMessage

Message shown when there is a model configuration mismatch.

Set by Model configuration mismatch on the Model Referencing Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

ModelReferenceDataLoggingMessage

Message shown when there is unsupported data logging.

Set by Unsupported data logging on the Model Referencing Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

ModelReferenceExtraNoncontSigs

Specifies diagnostic action to take when a discrete signal appears to pass through a Model block to the input of a block with continuous states.

Set by Extraneous discrete derivative signals on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

ModelReferenceIOMismatchMessage

Message shown when there is a port and parameter mismatch.

Set by Port and parameter mismatch on the Model Referencing Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

ModelReferenceIOMsg

Message shown when there is an invalid root Inport or Outport block connection.

Set by Invalid root Inport/Outport block connection on the Model Referencing Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

ModelReferenceMinAlgLoopOccurrences

Toggles the minimization of algebraic loop occurrences.

Set by Minimize algebraic loop occurrences on the Model Referencing pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

ModelReferenceNumInstancesAllowed

Total number of model reference instances allowed per top model.

Set by Total number of instances allowed per top model on the Model Referencing pane of the Configuration Parameters dialog box.

string — 'Zero' | 'Single' | {'Multi'}

ModelReferencePassRootInputsByReference

Toggles the passing of scalar root inputs by value.

Set by Pass fixed-size scalar root inputs by value for code generationon the Model Referencing pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

ModelReferenceSimTargetVerbose

This parameter is deprecated and has no effect. Use AccelVerboseBuild instead.

 

ModelReferenceSymbolNameMessage

For internal use.

 

ModelReferenceTargetType

For internal use.

 

ModelReferenceVersionMismatchMessage

Message shown when there is a model block version mismatch.

Set by Model block version mismatch on the Model Referencing Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

ModelVersion

Version number of model.

string — {'1.1'}

ModelVersionFormat

Format of model's version number.

Set by Model version on the History pane of the Model Properties dialog box.

See Viewing and Editing the Model History Log for more information.

string — {'1.%<AutoIncrement: 0>'}

ModelWorkspace

References this model's model workspace object.

an instance of the Simulink.ModelWorkspace class

ModifiedBy

Last person to modify this model.

string

ModifiedByFormat

Format for the display of last modifier.

Set by Last saved by on the History pane of the Model Properties dialog box.

See Viewing and Editing the Model History Log for more information.

Can also be set by Last saved by on the Model history field on the History pane of the Model Explorer.

string — {'%<Auto>'}

ModifiedComment

Field for user comments.

string — {''}

ModifiedDate

Date of last model modification.

string

ModifiedDateFormat

Format of modified date.

Set by Last saved on on the History pane of the Model Properties dialog box.

See Viewing and Editing the Model History Log for more information.

string — {'%<Auto>'}

ModifiedHistory

Area for keeping notes about the history of the model.

Set by the Model history field on the History pane of the Model Properties dialog box.

See Viewing and Editing the Model History Log for more information.

Can also be set by the Model history field on the History pane of the Model Explorer.

string — {''}

MultiTaskCondExecSysMsg

Select the diagnostic action to take if Simulink software detects a subsystem that might cause data corruption or nondeterministic behavior.

Set by Multitask conditionally executed subsystem on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

MultiTaskDSMMsg

Specifies diagnostic action to take when one task reads data from a Data Store Memory block to which another task writes data.

Set by Multitask data store on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

MultiTaskRateTransMsg

Specifies diagnostic action to take when an invalid rate transition takes place between two blocks operating in multitasking mode.

Set by Multitask rate transition on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.

string — 'warning' | {'error'}

Name

Model name.

string

NonBusSignalsTreatedAsBus

Detect when Simulink implicitly converts a non-bus signal to a bus signal to support connecting the signal to a block expecting a bus signal.

Non-bus signals treated as bus signals on the Diagnostics > Connectivity pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

NumberNewtonIterations

Number of Newton's method iterations performed by the ode14x implicit fixed-step solver.

Set by Number Newton's iterations on the Solver pane of the Configuration Parameters dialog box.

integer — {1}

ObjectParameters

Names and attributes of model parameters.

structure

Open

For internal use.

 

OptimizeBlockIOStorage

Enables signal storage reuse optimization.

Set by Signal storage reuse on the Optimization > Signals and Parameters pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

OutputOption

Time step output options for variable-step solvers.

Set by Output options on the Data Import/Export pane of the Configuration Parameters dialog box.

string — 'AdditionalOutputTimes' |
{'RefineOutputTimes'} |
'SpecifiedOutputTimes'

OutputSaveName

Workspace variable to store the model outputs.

Set by the Output field on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'yout'}

OutputTimes

Output times set when Output options on the Data Import/Export pane of the Configuration Parameters dialog box is set to Produce additional output.

Set by Output times on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'[]'}

PaperOrientation

Printing paper orientation.

string — 'portrait' | {'landscape'}

PaperPosition

When PaperPositionMode is set to manual, this parameter determines the position and size of a diagram on paper and the size of the diagram exported as a graphic file in the units specified by PaperUnits.

vector — [left, bottom, width, height]

PaperPositionMode

Paper position mode.

  • auto

    When printing, Simulink software sizes the diagram to fit the printed page. When exporting a diagram as a graphic image, Simulink software sizes the exported image to be the same size as the diagram's normal size on screen.

  • manual

    When printing, Simulink software positions and sizes the diagram on the page as indicated by PaperPosition. When exporting a diagram as a graphic image, Simulink software sizes the exported graphic to have the height and width specified by PaperPosition.

  • tiled

    Enables tiled printing.

    See Tiled Printing for more information.

string — {'auto'} | 'manual' | 'tiled'

PaperSize

Size of PaperType in PaperUnits.

vector — [width height] (read only)

PaperType

Printing paper type.

string — 'usletter' | 'uslegal' | 'a0' | 'a1' | 'a2' | 'a3' | 'a4' | 'a5' | 'b0' | 'b1' | 'b2' | 'b3' | 'b4' | 'b5' | 'arch-A' | 'arch-B' | 'arch-C' | 'arch-D' | 'arch-E' | 'A' | 'B' | 'C' | 'D' | 'E' | 'tabloid'

PaperUnits

Printing paper size units.

string — 'normalized' | {'inches'} | 'centimeters' | 'points'

ParameterArgumentNames

List of parameters used as arguments when this model is called as a reference.

Set by Model arguments (for referencing this model) in the Model Workspace pane of the Model Explorer.

string — {''}

ParameterDowncastMsg

Specifies diagnostic action to take when a parameter downcast occurs during simulation.

Set by Detect downcast on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

ParameterOverflowMsg

Specifies diagnostic action to take when a parameter overflow occurs during simulation.

Set by Detect overflow on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

ParameterPrecisionLossMsg

Specifies diagnostic action to take when parameter precision loss occurs during simulation.

Set by Detect precision loss on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

ParameterTunabilityLossMsg

Specifies diagnostic action to take when a parameter cannot be tuned because it uses unsupported functions or operators.

Set by Detect loss of tunability on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

ParameterUnderflowMsg

Specifies diagnostic action to take when a parameter underflow occurs during simulation.

Set by Detect underflow on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

ParamWorkspaceSource

For internal use.

 

Parent

Name of the model or subsystem that owns this object. The value of this parameter for a model is an empty string.

string — {''}

Pause

Pause simulation callback.

Set by Simulation pause function on the Callbacks pane of the Model Properties dialog box.

string — {''}

PositivePriorityOrder

Choose the appropriate priority ordering for the real-time system targeted by this model. The Simulink Coder™ software uses this information to implement asynchronous data transfers.

Set by Higher priority value indicates higher task priority on the Solver pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

PostLoadFcn

Function invoked just after this model is loaded.

Set by Model post-load function on the Callbacks pane of the Model Properties dialog box.

See Create Model Callbacks for more information.

string — {''}

PostSaveFcn

Function invoked just after this model is saved to disk. Not executed for blocks inside library links.

Set by Model post-save function on the Callbacks pane of the Model Properties dialog box.

See Create Model Callbacks for more information.

string — {''}

PreLoadFcn

Preload callback.

Set by Model pre-load function on the Callbacks pane of the Model Properties dialog box.

See Create Model Callbacks for more information.

string — {''}

PreSaveFcn

Function invoked just before this model is saved to disk. Not executed for blocks inside library links, except when you are breaking the link, e.g., with save_system( A, B, 'BreakUserLinks', 'on').

Set by Model pre-save function on the Callbacks pane of the Model Properties dialog box.

See Create Model Callbacks for more information.

string — {''}

ProdBitPerChar

Describes the length in bits of the C char data type supported by the production hardware to be used by this model.

Set by Number of bits: char in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {8}

ProdBitPerInt

Describes the length in bits of the C int data type supported by the production hardware to be used by this model.

Set by Number of bits: int in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {32}

ProdBitPerLong

Describes the length in bits of the C long data type supported by the production hardware to be used by this model.

Set by Number of bits: long in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {32}

ProdBitPerLongLong

Describes the length in bits of the C long data type supported by the production hardware to be used by this model.

Set by Number of bits: long long in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

The value of this parameter must be greater than or equal to the value of ProdBitPerLong.

integer — {64}

ProdBitPerShort

Describes the length in bits of the C short data type supported by the production hardware to be used by this model.

Set by Number of bits: short in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {16}

ProdEndianess

Describes the significance of the first byte of a data word of the production hardware to be used by this model.

Set by Byte ordering in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'Unspecified'} | 'LittleEndian' | 'BigEndian'

ProdEqTarget

Specifies that the hardware used to test the code generated from this model is the same as the production hardware or has the same characteristics.

Set by Test hardware is the same as production hardware in the Test hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

ProdHWDeviceType

Predefined hardware device to specify the C language constraints for your microprocessor.

Set by Device vendor and Device type in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'Generic->Unspecified (assume 32-bit Generic)'}

ProdIntDivRoundTo

Describes how the C compiler that creates production code for this model rounds the result of dividing one signed integer by another to produce a signed integer quotient.

Set by Signed integer division rounds to in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

string — 'Floor' | 'Zero' | {'Undefined'}

ProdLargestAtomicFloat

Specify the largest floating-point data type that can be atomically loaded and stored on the production hardware.

Set by Largest atomic size: floating-point in the Production hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — 'Float' | 'Double' | {'None'}

ProdLargestAtomicInteger

Specify the largest integer data type that can be atomically loaded and stored on the production hardware.

Set this parameter to 'LongLong' only if the production hardware supports the C long long data type and you have set ProdLongLongMode to 'on'.

Set by Largest atomic size: integer in the Production hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'Char'} | 'Short' | 'Int' | 'Long' | 'LongLong'

ProdLongLongMode

Specify that your C compiler supports the C long long data type. Most C99 compilers support long long.

Set by Enable long long in the Production hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

ProdShiftRightIntArith

Describes whether the C compiler that creates production code for this model implements a signed integer right shift as an arithmetic right shift.

Set by Shift right on a signed integer as arithmetic shift in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

ProdWordSize

Describes the word length in bits of the production hardware to be used by this model.

Set by Number of bits: native in the Production hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {32}

Profile

Enables the simulation profiler for this model.

In the Simulink Editor, set by Show Profiler Report on the Analysis menu.

string — 'on' | {'off'}

PropagateSignalLabelsOutOfModel

Pass propagated signal names to output signals of Model block.

Set by Propagate all signal labels out of the model on the Model Referencing pane of the Configuration Parameters dialog box.

See Model Referencing Panefor more information.

string — 'on' | {'off'}

PropagateVarSize

Select how variable-size signals propagate through referenced models.

Set by Propagate sizes of variable-size signals on the Model Referencing pane of the Configuration Parameters dialog box.

See Model Referencing Panefor more information.

string — | 'Infer from blocks in model' | 'Only when enabling' | 'During execution'

ReadBeforeWriteMsg

Specifies diagnostic action to take when the model attempts to read data from a data store before it has stored data at the current time step.

Set by Detect read before write on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'UseLocalSettings'} | 'DisableAll' | 'EnableAllAsWarning' | 'EnableAllAsError'

RecordCoverage

If RecordCoverage is set to on, Simulink collects and reports model coverage data during simulation. The format of this report is controlled by the values of the following parameters:

CovCompData

CovCumulativeReport

CovCumulativeVarName

CovHTMLOptions

CovHtmlReporting

CovMetricSettings

CovModelRefEnable

CovModelRefExcluded

CovNameIncrementing

CovPath

CovReportOnPause

CovSaveCumulativeToWorkSpaceVar

CovSaveName

CovSaveSingleToWorkspaceVar

If set to off, no model coverage data is collected or reported.

Set by Coverage for this model: <model name> on the Coverage pane of the Coverage Settings dialog box.

string — 'on' | {'off'}

Refine

Refine factor.

Set by Refine factor on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'1'}

RelTol

Relative error tolerance.

Set by Relative tolerance on the Solver pane of the Configuration Parameters dialog box.

string — {'1e-3'}

ReportName

Name of the associated file for the Report Generator.

string — {'simulink-default.rpt'}

ReqHilite

Highlights all the blocks in the Simulink diagram that have requirements associated with them.

In the Simulink Editor, set by Highlight Model on the Analysis > Requirements menu.

string — 'on' | {'off'}

RequirementInfo

For internal use.

 

RootOutportRequireBusObject

Specifies diagnostic action to take when a bus enters a root model Outport block for which a bus object has not been specified.

Set by Unspecified bus object at root Outport block on the Connectivity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

RTPrefix

Specifies diagnostic action to take when Simulink software encounters an object name that begins with rt.

Set by "rt" prefix for identifiers on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | 'warning' | {'error'}

RTW...

For information about model parameters beginning with RTW, see Configuration Parameters for Simulink Models and Parameter Reference in the Simulink Coder documentation.

 
SampleTimeAnnotations

In the Simulink Editor, set by Annotations on the Display > Sample Time menu.

string — 'on' | {'off'}

SampleTimeColors

In the Simulink Editor, set by Colors on the Display > Sample Time Display menu.

string — 'on' | {'off'}

SampleTimeConstraint

This option appears when the solver type is Fixed-step.

Set by Periodic sample time constraint on the Solver pane of the Configuration Parameters dialog box.

string — {'Unconstrained'} | 'STIndependent' | 'Specified'

SampleTimeProperty

Specifies and assigns priorities to the sample times implemented by the model. This option appears when Periodic sample time constraint is set to Specified.

Set by Sample time properties on the Solver pane of the Configuration Parameters dialog box.

Structure containing the fields SampleTime, Offset, and Priority

SavedCharacterEncoding

Specifies the character set used to encode this model. See the slCharacterEncoding command for more information.

string

SaveDefaultBlockParams

For internal use.

 

SaveFinalState

Save final states to workspace.

Set by the Final states check box on the Data Import/Export pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

SaveFormat

Format used to save data to the MATLAB workspace.

Set by Format on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'Array'} | 'Structure' | 'StructureWithTime'

SaveOutput

Save simulation output to workspace.

Set by the Output check box on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SaveState

Save states to workspace.

Set by the States check box on the Data Import/Export pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

SaveTime

Save simulation time to workspace.

Set by the Time check box on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SaveWithDisabledLinksMsg

Specifies diagnostic action to take when saving a block diagram having disabled library links.

Set by Block diagram contains disabled library links on the Saving Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SaveWithParameterizedLinksMsg

Specifies diagnostic action to take when saving a block diagram having parameterized library links.

Set by Block diagram contains parameterized library links on the Saving Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

ScreenColor

Background color of the model window.

In the Simulink Editor, set by Canvas Color on the Diagram > Format menu.

string — 'black' | {'white'} | 'red' | 'green' | 'blue' | 'cyan' | 'magenta' | 'yellow' | 'gray' | 'lightBlue' | 'orange' | 'darkGreen' | [r,g,b,a] where r, g, b, and a are the red, green, blue, and alpha values of the color normalized to the range 0.0 to 1.0. The alpha value is ignored.

ScrollbarOffset

For internal use.

 

SFcnCompatibilityMsg

See SfunCompatibilityCheckMsg parameter for more information.

 

SFInvalidInputDataAccessInChartInitDiag

Select the diagnostic action to take when a chart:

  • Has the ExecuteAtInitialization property set to true

  • Accesses input data on a default transition or associated state entry actions, which execute at chart initialization

Set by Invalid input data access in chart initialization on the Diagnostics > Stateflow pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SFNoUnconditionalDefaultTransitionDiag

Select the diagnostic action to take when a chart does not have an unconditional default transition to a state or a junction.

Set by No unconditional default transitions on the Diagnostics > Stateflow pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SFSimEcho

Enables output to appear in the MATLAB Command Window during simulation of a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Echo expressions without semicolons on the Simulation Target pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SFSimEnableDebug

Enables debugging and animation during simulation of a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Enable debugging/animation on the Simulation Target pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SFSimOverflowDetection

Enables overflow detection of data during simulation of a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks. Overflow occurs for data when a value assigned to it exceeds the numeric capacity of the data type.

    Note:   To enable this option, you must also select the Data Range check box in the Stateflow Debugger window.

Set by Enable overflow detection (with debugging) on the Simulation Target pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SFTransitionActionBeforeConditionDiag

Select the diagnostic action to take when a transition action is specified before a condition action in a transition path containing multiple segmented transitions.

Set by Transition action specified before condition action on the Diagnostics > Stateflow pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SFTransitionOutsideNaturalParentDiag

Select the diagnostic action to take when a chart contains a transition that loops outside the parent state or junction.

Set by Transition outside natural parent on the Diagnostics > Stateflow pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SfunCompatibilityCheckMsg

Specifies diagnostic action to take when S-function upgrades are needed.

Set by S-function upgrades needed on the Compatibility Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

SFUnconditionalTransitionShadowingDiag

Select the diagnostic action to take when a chart contains multiple unconditional transitions that originate from the same state or the same junction.

Set by Transition shadowing on the Diagnostics > Stateflow pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SFUndirectedBroadcastEventsDiag

Select the diagnostic action to take when a chart contains undirected local event broadcasts.

Set by Undirected event broadcasts on the Diagnostics > Stateflow pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SFUnexpectedBacktrackingDiag

Select the diagnostic action to take when a chart junction:

  • Does not have an unconditional transition path to a state or a terminal junction

  • Has multiple transition paths leading to it

Set by Unexpected backtracking on the Diagnostics > Stateflow pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SFUnusedDataAndEventsDiag

Select the diagnostic action to take for detection of unused data and events in a chart.

Set by Unused data and events on the Diagnostics > Stateflow pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

ShapePreserveControl

At each time step, use derivative information to improve integration accuracy.

Set by Shape preservation on the Solver pane of the Configuration Parameters dialog box.

string — 'EnableAll' | {'DisableAll'}

ShowGrid

Has no effect in Simulink Editor. This parameter will be removed in a future release.

string — 'on' | {'off'}

ShowLinearizationAnnotations

Toggles linearization icons in the model.

string — {'on'} | 'off'

ShowLineDimensions

Show signal dimensions on this model's block diagram.

In the Simulink Editor, set by Signal Dimensions on the Display > Signal & Ports menu.

string — 'on' | {'off'}

ShowLineDimensionsOnError

For internal use.

 

ShowLineWidths

Deprecated. Use ShowLineDimensions instead.

 

ShowLoopsOnError

Highlight invalid loops graphically.

string — {'on'} | 'off'

ShowModelReferenceBlockIO

Toggles display of I/O mismatch on block.

In the Simulink Editor, set by Block I/O Mismatch for Referenced Model on the Display > Blocks menu.

string — 'on' | {'off'}

ShowModelReferenceBlockVersion

Toggles display of version on block.

In the Simulink Editor, set by Block Version for Referenced Models on the Display > Blocks menu.

string — 'on' | {'off'}

Shown

For internal use.

 

ShowPageBoundaries

Toggles display of page boundaries on the Simulink Editor canvas.

In the Simulink Editor, set by Show Page Boundaries on the File > Print menu.

string — 'on' | {'off'}

ShowPortDataTypes

Show data types of ports on this model's block diagram.

In the Simulink Editor, set by Port Data Types on the Display > Signals & Ports menu.

string — 'on' | {'off'}

ShowPortDataTypesOnError

For internal use.

 

ShowStorageClass

Show storage classes of signals on this model's block diagram.

In the Simulink Editor, set by Storage Class on the Format > Signals & Ports menu.

string — 'on' | {'off'}

ShowTestPointIcons

Show test point icons on this model's block diagram.

In the Simulink Editor, set by Testpoint & Logging Indicators on the Display > Signals & Ports menu.

string — {'on'} | 'off'

ShowViewerIcons

Show viewer icons on this model's block diagram.

In the Simulink Editor, set by Viewer Indicator on the Display > Signals & Ports menu.

string — {'on'} | 'off'

SignalHierarchy

If the signal is a bus, returns the name and hierarchy of the signals in the bus.

(Read-only) Get with the get_param command. Specify a port or line handle. See View Information about Buses.

Return values reflect the structure of the signal that you specify.

SignalInfNanChecking

Specifies diagnostic action to take when the value of a block output is Inf or NaN at the current time step.

Set by Inf or NaN block output on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

SignalLabelMismatchMsg

Specifies diagnostic action to take when a signal label mismatch occurs.

Set by Signal label mismatch on the Connectivity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

SignalLogging

Globally enable signal logging for this model.

Set by the Signal logging check box on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SignalLoggingName

Name for saving signal logging data to a workspace.

Set by the Signal logging field on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'logsout'}

SignalLoggingSaveFormat

Format for saving signal logging data.

Set by the Signal logging format field on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'ModelDataLogs'}|
'Dataset'

SignalNameFromLabel

Propagate signal names for Bus Creator block input signals whenever you change the name of an input signal programmatically.

Set with the set_param command, using either a port or line handle and a string specifying the signal name to propagate.

string — {''}

SignalRangeChecking

Select the diagnostic action to take when signals exceed specified minimum or maximum values.

Set by Simulation range checking on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

SignalResolutionControl

Control which named states and signals get resolved to Simulink signal objects.

Set by Signal resolution on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'UseLocalSettings'} |
'TryResolveAll' |
'TryResolveAllWithWarning'

SigSpecEnsureSampleTimeMsg

Specifies diagnostic action to take when the sample time of the source port of a signal specified by a Signal Specification block differs from the signal's destination port.

Set by Enforce sample times specified by Signal Specification blocks on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SimBuildMode

Specifies how you build the simulation target for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Simulation target build mode on the Simulation Target pane of the Configuration Parameters dialog box.

string — {'sf_incremental_build'} | 'sf_nonincremental_build' | 'sf_make' | 'sf_make_clean' | 'sf_make_clean_objects'

SimCompilerOptimization

Specifies the compiler optimization level during acceleration code generation.

Set by Compiler optimization level on the Optimization pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

SimCtrlC

Enables responsiveness checks in code generated for MATLAB Function blocks.

Set by Ensure responsiveness on the Simulation Target pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SimCustomHeaderCode

Enter code lines to appear near the top of a generated header file for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Header file on the Simulation Target > Custom Code pane of the Configuration Parameters dialog box.

string — {''}

SimCustomInitializer

Enter code statements that execute once at the start of simulation for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Initialize function on the Simulation Target > Custom Code pane of the Configuration Parameters dialog box.

string — {''}

SimCustomSourceCode

Enter code lines to appear near the top of a generated source code file for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Source file on the Simulation Target > Custom Code pane of the Configuration Parameters dialog box.

string — {''}

SimCustomTerminator

Enter code statements that execute at the end of simulation for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Terminate function on the Simulation Target > Custom Code pane of the Configuration Parameters dialog box.

string — {''}

SimIntegrity

Detects violations of memory integrity in code generated for MATLAB Function blocks and stops execution with a diagnostic.

Set by Ensure memory integrity on the Simulation Target pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SimParseCustomCode

Specify whether or not to parse the custom code and report unresolved symbols in the model.

Set by Parse custom code symbols on the Simulation Target > Custom Code pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

SimReservedNameArray

Enter the names of variables or functions in the generated code that match the names of variables or functions specified in custom code. This action prevents naming conflicts between identifiers in the generated code and in custom code for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Reserved names on the Simulation Target > Symbols pane of the Configuration Parameters dialog box.

string array — {{}}

SimulationCommand

Executes a simulation command.

    Note:   You cannot use set_param to run a simulation in a MATLAB session that does not have a display, i.e., if you used matlab -nodisplay to start the session.

string — 'start' | 'stop' | 'pause' | 'continue' | 'step' | 'update' | 'WriteDataLogs' | 'SimParamDialog' | 'connect' | 'disconnect' | 'WriteExtModeParamVect' | 'AccelBuild'

SimulationMode

Indicates whether Simulink software should run in Normal, Accelerator, Rapid Accelerator, or External mode.

In the Simulink Editor, set by the Simulation > Mode menu.

string — {'normal'} | 'accelerator' | 'rapid-accelerator' | 'external'

SimulationStatus

Indicates simulation status.

string — {'stopped'} | 'updating' | 'initializing' | 'running' | 'paused' | 'terminating' | 'external'

SimulationTime

Current time value for the simulation.

double — {0}

SimStateInterfaceChecksumMismatchMsg

Check to ensure that the interface checksum is identical to the model checksum before loading the SimState.

string — 'none'|'warning'|error'

SimStateOlderReleaseMsg

Check to report that the SimState was generated by an earlier version of Simulink. In the Diagnostics pane of the Configuration Parameters dialog box, configure the diagnostic to allow Simulink to report the message as error or warning.

string — 'error'|'warning'

SimUserIncludeDirs

Enter a space-separated list of directory paths that contain files you include in the compiled target for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Include directories on the Simulation Target > Custom Code pane of the Configuration Parameters dialog box.

string — {''}

    Note:   If your list includes any Windows® path strings that contain spaces, each instance must be enclosed in double quotes within the argument string, for example,

    'C:\Project "C:\Custom Files"'

SimUserLibraries

Enter a space-separated list of static libraries that contain custom object code to link into the target for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Libraries on the Simulation Target > Custom Code pane of the Configuration Parameters dialog box.

string — {''}

SimUserSources

Enter a space-separated list of source files to compile and link into the target for a model that contains MATLAB Function blocks, Stateflow charts, or Truth Table blocks.

Set by Source files on the Simulation Target > Custom Code pane of the Configuration Parameters dialog box.

string — {''}

SingleTaskRateTransMsg

Specifies diagnostic action to take when a rate transition takes place between two blocks operating in single-tasking mode.

Set by Single task rate transition on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

Solver

Solver used for the simulation.

Set by the Solver drop-down list on the Solver pane of the Configuration Parameters dialog box.

string — 'VariableStepDiscrete' | {'ode45'} | 'ode23' | 'ode113' | 'ode15s' | 'ode23s' | 'ode23t' | 'ode23tb' | 'FixedStepDiscrete' |'ode8'| 'ode5' | 'ode4' | 'ode3' | 'ode2' | 'ode1' | 'ode14x'

SolverMode

Solver mode for this model. This option appears when the solver type is Fixed-step.

Set by Tasking mode for periodic sample times on the Solver pane of the Configuration Parameters dialog box.

string — {'Auto'} | 'SingleTasking' | 'MultiTasking'

SolverName

Solver used for the simulation. See Solver parameter for more information.

 

SolverPrmCheckMsg

Enables diagnostics to control when Simulink software automatically selects solver parameters. This option notifies you if:

  • Simulink software changes a user-modified parameter to make it consistent with other model settings

  • Simulink software automatically selects solver parameters for the model, such as FixedStepSize

Set by Automatic solver parameter selection on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

SolverResetMethod

This option appears when the solver type is Variable-step and the solver is ode15s (stiff/NDF), ode23t (Mod. stiff/Trapezoidal), or ode23tb (stiff/TR-BDF2).

Set by Solver reset method on the Solver pane of the Configuration Parameters dialog box.

string — {'Fast'} | 'Robust'

SolverType

Solver type used for the simulation.

Set by Type on the Solver pane of the Configuration Parameters dialog box.

string — {'Variable-step'} | 'Fixed-step'

SortedOrder

Show the sorted order of this model's blocks on the block diagram.

In the Simulink Editor, set by Sorted Execution Order on the Display > Blocks menu.

string — 'on' | {'off'}

StartFcn

Start simulation callback.

Set by Simulation start function on the Callbacks pane of the Model Properties dialog box.

See Create Model Callbacks for more information.

string — {''}

StartTime

Simulation start time.

Set by Start time on the Solver pane of the Configuration Parameters dialog box.

string — {'0.0'}

StateNameClashWarn

Select the diagnostic action to take when a name is used for more than one state in the model.

Set by State name clash on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'}

StateSaveName

State output name to be saved to workspace.

Set by the States field on the Data Import/Export pane of the Configuration Parameters dialog box.

string — {'xout'}

StatusBar

Has no effect in Simulink Editor. This parameter will be removed in a future release.

In the Simulink Editor, set by Status Bar on the View menu.

string — {'on'} | 'off'

StopFcn

Stop simulation callback.

Set by Simulation stop function on the Callbacks pane of the Model Properties dialog box.

See Create Model Callbacks for more information.

string — {''}

StopTime

Simulation stop time.

Set by Stop time on the Solver pane of the Configuration Parameters dialog box.

string — {'10.0'}

StrictBusMsg

Specifies diagnostic action to take when Simulink software detects a signal that some blocks treat as a mux or vector, while other blocks treat the signal as a bus.

Set by Mux blocks used to create bus signals and Bus signal treated as vector on the Connectivity Diagnostics pane of the Configuration Parameters dialog box.

For more information, see Prevent Bus and Mux Mixtures.

string — {'ErrorLevel1'} |
'None' |
'Warning' |
'WarnOnBusTreatedAsVector'|
'ErrorOnBusTreatedAsVector'

SupportModelReferenceSimTargetCustomCode

For SIM target Accelerator mode code generation, include Stateflow or MATLAB custom code for code generation for a referenced model. Select this option for each referenced model for which you want code generation to include Stateflow or MATLAB code for code generation

string — {'off'} | 'on'

Tag

User-specified text that is assigned to the model's Tag parameter and saved with the model.

string — {''}

TargetBitPerChar

Describes the length in bits of the C char data type supported by the hardware used to test generated code.

Set by Number of bits: char in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {8}

TargetBitPerInt

Describes the length in bits of the C int data type supported by the hardware used to test generated code.

Set by Number of bits: int in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {32}

TargetBitPerLong

Describes the length in bits of the C long data type supported by the hardware used to test generated code.

Set by Number of bits: long in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {32}

TargetBitPerLongLong

Describes the length in bits of the C long long data type supported by the hardware used to test generated code.

Set by Number of bits: long long in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

The value of this parameter must be greater than or equal to the value of TargetBitPerLong.

integer — {64}

TargetBitPerShort

Describes the length in bits of the C short data type supported by the hardware used to test generated code.

Set by Number of bits: short in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {16}

TargetEndianess

Describes the significance of the first byte of a data word of the hardware used to test generated code.

Set by Byte ordering in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'Unspecified'} | 'LittleEndian' | 'BigEndian'

TargetFcnLib

For internal use.

 

TargetHWDeviceType

Describes the characteristics of the hardware used to test generated code.

Set by Device vendor and Device type in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'Generic->Unspecified (assume 32-bit Generic)'}

TargetIntDivRoundTo

Describes how the C compiler that creates test code for this model rounds the result of dividing one signed integer by another to produce a signed integer quotient.

Set by Signed integer division rounds to in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — 'Floor' | 'Zero' | {'Undefined'}

TargetLargestAtomicFloat

Specify the largest floating-point data type that can be atomically loaded and stored on the hardware used to test code.

Set by Largest atomic size: floating-point in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — 'Float' | 'Double' | {'None'}

TargetLargestAtomicInteger

Specify the largest integer data type that can be atomically loaded and stored on the hardware used to test code.

Set this parameter to 'LongLong' only if the test hardware supports the C long long data type and you have set TargetLongLongMode to 'on'.

Set by Largest atomic size: integer in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'Char'} | 'Short' | 'Int' | 'Long' | 'LongLong'

TargetLongLongMode

Specify that your C compiler supports the C long long data type. Most C99 compilers support long long.

Set by Enable long long in the Production hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — 'on' | {'off'}

TargetShiftRightIntArith

Describes whether the C compiler that creates test code for this model implements a signed integer right shift as an arithmetic right shift.

Set by Shift right on a signed integer as arithmetic shift in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

string — {'on'} | 'off'

TargetTypeEmulation WarnSuppressLevel

Specifies whether Simulink Coder software displays or suppresses warning messages when emulating integer sizes in rapid prototyping environments.

integer — {0}

TargetWordSize

Describes the word length in bits of the hardware used to test generated code.

Set by Number of bits: native in the Test hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box.

integer — {32}

TasksWithSamePriorityMsg

Specifies diagnostic action to take when tasks have equal priority.

Set by Tasks with equal priority on the Sample Time Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

TiledPageScale

Scales the size of the tiled page relative to the model.

string — {'1'}

TiledPaperMargins

Controls the size of the margins associated with each tiled page. Each element in the vector represents a margin at the particular edge.

vector — [left, top, right, bottom]

TimeAdjustmentMsg

Specifies diagnostic action to take if Simulink software makes a minor adjustment to a sample hit time while running the model.

Set by Sample hit time adjusting on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning'

TimeSaveName

Simulation time name.

Set by the Time field on the Data Import/Export pane of the Configuration Parameters dialog box.

variable — {'tout'}

TLC...

Parameters whose names begin with TLC are used for code generation. See the Simulink Coder documentation for more information.

 

ToolBar

Has no effect in Simulink Editor. This parameter will be removed in a future release.

In the Simulink Editor, hide or display all toolbars with Toolbars on the View menu or, hide or display specific toolbars using File > Simulink Preferences > Editor Default toolbar options.

string — {'on'} | 'off'

TryForcingSFcnDF

This flag is used for backward compatibility with user S-functions that were written prior to R12.

string — 'on' | {'off'}

TunableVars

List of global (tunable) parameters.

Set in the Model Parameter Configuration dialog box.

string — {''}

TunableVarsStorageClass

List of storage classes for their respective tunable parameters.

Set in the Model Parameter Configuration dialog box.

string — {''}

TunableVarsTypeQualifier

List of storage type qualifiers for their respective tunable parameters.

Set in the Model Parameter Configuration dialog box.

string — {''}

Type

Simulink object type (read only).

string — {'block_diagram'}

UnconnectedInputMsg

Unconnected input ports diagnostic.

Set by Unconnected block input ports on the Connectivity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

UnconnectedLineMsg

Unconnected lines diagnostic.

Set by Unconnected line on the Connectivity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

UnconnectedOutputMsg

Unconnected block output ports diagnostic.

Set by Unconnected block output ports on the Connectivity Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

UnderSpecifiedDataTypeMsg

Detect usage of heuristics to assign signal data types.

Set by Underspecified data types on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

UnderspecifiedInitializationDetection

Select how Simulink software handles initialization of initial conditions for conditionally executed subsystems, Merge blocks, subsystem elapsed time, and Discrete-Time Integrator blocks.

Set by Underspecified initialization detection on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'classic'} | 'simplified'

UniqueDataStoreMsg

Specifies diagnostic action to take when the model contains multiple Data Store Memory blocks that specify the same data store name.

Set by Duplicate data store names on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

UnknownTsInhSupMsg

Detect blocks that have not set whether they allow the model containing them to inherit a sample time.

Set by Unspecified inheritability of sample time on the Solver Diagnostics pane of the Configuration Parameters dialog box.

string — 'none' | {'warning'} | 'error'

UnnecessaryDatatypeConvMsg

Detect unnecessary data type conversion blocks.

Set by Unnecessary type conversions on the Type Conversion Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning'

UpdateHistory

Specifies when to prompt the user about updating the model history.

Set by Prompt to update model history on the History pane of the Model Properties dialog box or Prompt to update model history on the History pane of the Model Explorer.

See Viewing and Editing the Model History Log for more information.

string — {'UpdateHistoryNever'} | 'UpdateHistoryWhenSave'

UpdateModelReferenceTargets

Specify whether to rebuild simulation and Simulink Coder targets for referenced models before updating, simulating, or generating code for this model.

Set by Rebuild options on the Model Referencing pane of the Configuration Parameters dialog box.

string — 'IfOutOfDate' | 'Force' | 'AssumeUpToDate' | {'IfOutOfDateOrStructuralChange'}

UseAnalysisPorts

For internal use.

 

UseIntDivNetSlope

Use integer division to handle net slopes that are reciprocals of integers.

string — 'on' | {'off'}

VectorMatrixConversionMsg

Detect vector-to-matrix or matrix-to-vector conversions.

Set by Vector/matrix block input conversion on the Type Conversion Diagnostics pane of the Configuration Parameters dialog box.

string — {'none'} | 'warning' | 'error'

Version

Simulink version you are currently running, e.g., '7.6'. If you are using a service pack, the ver function returns an additional digit, e.g., 7.4.1 (R2009bSP1). To get version information without loading the block diagram into memory, see Simulink.MDLInfo.

double (read only)

VersionLoaded

Simulink version that last saved the model, e.g., '7.6'. If you are using a service pack, the ver function returns an additional digit, e.g., 7.4.1 (R2009bSP1). To get version information without loading the block diagram into memory, see Simulink.MDLInfo.

double (read only)

WideLines

Draws lines that carry vector or matrix signals wider than lines that carry scalar signals.

In the Simulink Editor, set by Wide Nonscalar Lines on the Display > Signals & Ports menu.

string — 'on' | {'off'}

WideVectorLines

Deprecated. Use WideLines instead.

 

WriteAfterReadMsg

Specifies diagnostic action to take when the model attempts to store data in a data store after previously reading data from it in the current time step.

Set by Detect write after read on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'UseLocalSettings'} | 'DisableAll' | 'EnableAllAsWarning' | 'EnableAllAsError'

WriteAfterWriteMsg

Specifies diagnostic action to take when the model attempts to store data in a data store twice in succession in the current time step.

Set by Detect write after write on the Data Validity Diagnostics pane of the Configuration Parameters dialog box.

string — {'UseLocalSettings'} | 'DisableAll' | 'EnableAllAsWarning' | 'EnableAllAsError'

ZCThreshold

Specifies the deadband region used during the detection of zero crossings. Signals falling within this region are defined as having crossed through zero.

Set by Signal threshold on the Solver pane of the Configuration Parameters dialog box.

string — {'auto'} | any real number greater than or equal to zero

ZeroCross

For internal use.

 

ZeroCrossAlgorithm

Specifies the algorithm to detect zero crossings when you select a variable-step solver.

Set by Algorithm on the Solver pane of the Configuration Parameters dialog box.

string — {'Nonadaptive'} | 'Adaptive'

ZeroCrossControl

Enable zero-crossing detection.

Set by Zero-crossing control on the Solver pane of the Configuration Parameters dialog box.

string — {'UseLocalSettings'} | 'EnableAll' | 'DisableAll'

ZoomFactor

Zoom factor of the Simulink Editor window expressed as a percentage of normal (100%) or by the keywords FitSystem or FitSelection.

In the Simulink Editor, set by the zoom commands on the View menu.

string — {'100'} | 'FitSystem' | 'FitSelection'

Examples of Setting Model Parameters

These examples show how to set model parameters for the mymodel system.

This command sets the simulation start and stop times.

set_param('mymodel','StartTime','5','StopTime','100')

This command sets the solver to ode15s and changes the maximum order.

set_param('mymodel','Solver','ode15s','MaxOrder','3')

This command associates a PostSaveFcn callback.

set_param('mymodel','PostSaveFcn','my_save_cb')
Was this topic helpful?