| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
| On this page… |
|---|
The following sections list parameters that you can set for Simulink models and blocks, 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 Using Callback Functions). The Description column indicates where you can set the value on a dialog box. For examples, see Examples of Setting Model Parameters.
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.
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. Set by User Description String on the View > Block Data Tips Options menu of the Model Editor. | string — 'on' | {'off'} | |
BlockNameDataTip | Specifies whether to display the block name as a data tip. Set by Block Name on the View > Block Data Tips Options menu of the Model Editor. | string — 'on' | {'off'} | |
BlockParametersDataTip | Specifies whether to display a block parameter in a data tip. Set by Parameter Names and Values on the View > Block Data Tips Options menu of the Model Editor. | 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' | |
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. Set by Show Masked Subsystems on the View > Model Browser Options menu of the Model Editor. | string — 'on' | {'off'} | |
BrowserShowLibraryLinks | Show library links in the Model Browser. Set by Show Library Links on the View > Model Browser Options menu of the Model Editor. | string — 'on' | {'off'} | |
BufferReusableBoundary | For internal use. | ||
BufferReuse | Enable reuse of block I/O buffers. Set by Reuse block outputs on the Optimization pane of the Configuration Parameters dialog box. | string — {'on'} | 'off' | |
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 Connectivity Diagnostics 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. | ||
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 targets 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 Creating Model Callback Functions for more information. | string — {''} | |
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' | |
CovCompData | If CovHTMLOptions is set to off 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 Report 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 Simulink Verification and Validation software displays the coverage results for the last simulation in the report. Set by the radial buttons Cumulative runs (on) / Last run (off) on the Report 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 M-file functions that Embedded MATLAB functions call in your model. The functions may be defined in an Embedded MATLAB Function block or in a Stateflow chart. Enable this feature by checking Coverage for External Embedded MATLAB Files on the Coverage Settings dialog box. | '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 Report pane of the Coverage Settings dialog box, select 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):
| |
CovHTMLReporting | Set to on to tell the Simulink Verification and Validation software to create an HTML report containing the coverage data in the MATLAB Help browser at the end of simulation. Set by Generate HTML report on the Report 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. Options 's' and 'w' are enabled 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. Option 'e' is disabled 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:
| |
| |||
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 Model History Controls for more information. | string | |
Creator | Name of model creator. Set by Created by on the History pane of the Model Properties dialog box. See Model History Controls for more information. | string | |
CurrentBlock | For internal use. | ||
CurrentOutputPort | For internal use. | ||
DataTypeOverride | Specifies data type used to override fixed-point data types. Set by Data type override on the Fixed-Point Tool. | string — {'UseLocalSettings'} | 'ScaledDoubles' | 'TrueDoubles' | 'TrueSingles' | 'ForceOff' | |
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'} | |
DeleteChildFcn | Delete child callback function. Created on the Callbacks pane of the Block Properties dialog box. See Creating Block Callback Functions 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 | Toggles display of execution context icons on this model's block diagram. Set by Execution Context Indicator on the Format > Block Displays menu of the Model Editor. | string — 'on' | {'off'} | |
ExpressionFolding | Enables expression folding. Set by Eliminate superfluous local variables (Expression folding) on the Optimization 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. | scalar or vector — {'[t, u]'} | |
ExtMode... | Parameters whose names start with ExtMode apply to Simulink External Mode. See External Mode for more information. | ||
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 — {'Use local settings'} | 'Enable All' | 'Disable All' | |
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 > Real-Time Workshop > Interface > Generate preprocessor conditionals. See Generating Code Variants for Variant Models for more information. | string — {'Use local settings'} | 'off' | 'on' | |
GridSpacing | Spacing of the Model Editor grid in pixels. | integer — {20} | |
Handle | Handle of the block diagram for this model. | double | |
HiliteAncestors | For internal use. | ||
HiliteFcnCallInpInsideContext | Enables highlighting of Function-Call Subsystem blocks when one or more inputs depend on source blocks that appear in their own calling context. | string — 'on' | {'off'} | |
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 Creating Model Callback Functions 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 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 MATLAB Time Series Tools viewer at the end of a simulation or whenever you pause the simulation. Set by Inspect signal logs when simulation is paused/stopped 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 | Shows which blocks in the model are linked or have disabled or modified links. Set by Library Link Display on the Format menu of the Model Editor. | string — {'none'} | 'user' | 'all' | |
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'} | |
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 .mdl 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 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' | |
Show the Model Browser. Set by Model Browser on the View > Model Browser Options menu of the Model Editor. | 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 scalar root inputs by value on 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 Model History Controls 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 Model History Controls 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 Model History Controls 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 Model History Controls 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 | |
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 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' | | |
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'} | 'rotated' | |
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.
| 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 — {''} | |
PositivePriorityOrder | Choose the appropriate priority ordering for the real-time system targeted by this model. The Real-Time Workshop 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 Creating Model Callback Functions for more information. | string — {''} | |
PostSaveFcn | Function invoked just after this model is saved to disk. Set by Model post-save function on the Callbacks pane of the Model Properties dialog box. See Creating Model Callback Functions for more information. | string — {''} | |
PreLoadFcn | Preload callback. Set by Model pre-load function on the Callbacks pane of the Model Properties dialog box. See Creating Model Callback Functions for more information. | string — {''} | |
PreSaveFcn | Function invoked just before this model is saved to disk. Set by Model pre-save function on the Callbacks pane of the Model Properties dialog box. See Creating Model Callback Functions 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 char in the Embedded 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 int in the Embedded 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 long in the Embedded hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box. | integer — {32} | |
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 short in the Embedded 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 Embedded 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 None in the Emulation 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 type in the Embedded hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box. | string — {'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 Embedded hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box. | string — 'Floor' | 'Zero' | {'Undefined'} | |
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 Embedded 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 word size in the Embedded hardware section on the Hardware Implementation pane of the Configuration Parameters dialog box. | integer — {32} | |
Profile | Enables the simulation profiler for this model. Set by Profiler on the Tools menu of the Model Editor. | string — 'on' | {'off'} | |
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 | A value of on causes Simulink software to gather and report 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 the value is off, no model coverage data is collected or reported and the preceding coverage report parameters have no effect. 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. Set by Highlight model on the Tools > Requirements menu of the Model Editor. | 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... | See the Real-Time Workshop documentation for more information on parameters whose names begin with RTW. | ||
| SampleTimeAnnotations | Set by Annotations on the Format > Sample Time Display menu of the Model Editor. | string — 'on' | {'off'} | |
SampleTimeColors | Set by Colors on the Format > Sample Time Display menu of the Model Editor. | 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. Set by Screen Color on the Format menu of the Model Editor. | 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. | ||
SFSimEcho | Enables output to appear in the MATLAB Command Window during simulation of a model that contains Embedded 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 Embedded 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 Embedded 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.
Set by Enable overflow detection (with debugging) on the Simulation Target pane of the Configuration Parameters dialog box. | string — {'on'} | 'off' | |
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' | ||
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 | Show the Model Editor grid. | string — 'on' | {'off'} | |
ShowLinearizationAnnotations | Toggles linearization icons in the model. | string — {'on'} | 'off' | |
Show signal dimensions on this model's block diagram. Set by Signal Dimensions on the Format > Port/Signal Displays menu of the Model Editor. | 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. Set by Model Block I/O Mismatch on the Format > Block Displays menu of the Model Editor. | string — 'on' | {'off'} | |
ShowModelReferenceBlockVersion | Toggles display of version on block. Set by Model Block Version on the Format > Block Displays menu of the Model Editor. | string — 'on' | {'off'} | |
Shown | For internal use. | ||
ShowPageBoundaries | Toggles display of page boundaries on the Model Editor's canvas. Set by Show Page Boundaries on the View menu of the Model Editor. | string — 'on' | {'off'} | |
ShowPortDataTypes | Show data types of ports on this model's block diagram. Set by Port Data Types on the Format > Port/Signal Displays menu of the Model Editor. | string — 'on' | {'off'} | |
ShowPortDataTypesOnError | For internal use. | ||
ShowStorageClass | Show storage classes of signals on this model's block diagram. Set by Storage Class on the Format > Port/Signal Displays menu of the Model Editor. | string — 'on' | {'off'} | |
ShowTestPointIcons | Show test point icons on this model's block diagram. Set by Testpoint/Logging Indicators on the Format > Port/Signal Displays menu of the Model Editor. | string — {'on'} | 'off' | |
ShowViewerIcons | Show viewer icons on this model's block diagram. Set by Viewer Indicators on the Format > Port/Signal Displays menu of the Model Editor. | string — {'on'} | 'off' | |
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'} | |
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'} | | |
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' | |
SimBlas | Enables Embedded MATLAB Function blocks in Simulink models and Embedded MATLAB functions in Stateflow charts to speed up low-level matrix operations during simulation. Set by Use BLAS library for faster simulation on the Simulation Target pane of the Configuration Parameters dialog box. | string — {'on'} | 'off' | |
SimBuildMode | Specifies how you build the simulation target for a model that contains Embedded 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 Embedded 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 Embedded 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 Embedded 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 Embedded 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 Embedded 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 Embedded 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' | |
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 Embedded 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. | 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. Set by the Simulation menu on the Model Editor. | string — {'normal'} | 'accelerator' | 'rapid' | 'external' | |
SimulationStatus | Indicates simulation status. | string — {'stopped'} | 'updating' | 'initializing' | 'running' | 'paused' | 'terminating' | 'external' | |
SimulationTime | Current time value for the simulation. | double — {0} | |
SimUserIncludeDirs | Enter a space-separated list of directory paths that contain files you include in the compiled target for a model that contains Embedded 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 — {''} | |
SimUserLibraries | Enter a space-separated list of static libraries that contain custom object code to link into the target for a model that contains Embedded 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 Embedded 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 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' | '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:
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. Set by Sorted Order on the Format > Block Displays menu of the Model Editor. | string — 'on' | {'off'} | |
StartFcn | Start simulation callback. Set by Simulation start function on the Callbacks pane of the Model Properties dialog box. See Creating Model Callback Functions 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 | Show or hide the status bar on the Model Editor window. Set by Status Bar on the View menu of the Model Editor. | string — {'on'} | 'off' | |
StopFcn | Stop simulation callback. Set by Simulation stop function on the Callbacks pane of the Model Properties dialog box. See Creating Model Callback Functions 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. See Avoiding Mux/Bus Mixtures for more information. | string — {'None'} | | |
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 char in the Emulation 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 int in the Emulation 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 long in the Emulation hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box. | integer — {32} | |
TargetBitPerShort | Describes the length in bits of the C short data type supported by the hardware used to test generated code. Set by short in the Emulation 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 Emulation 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 type in the Emulation hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box. | string — {'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 Emulation hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box. | string — 'Floor' | 'Zero' | {'Undefined'} | |
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 Emulation hardware section of the Hardware Implementation pane of the Configuration Parameters dialog box. | string — {'on'} | 'off' | |
TargetTypeEmulation WarnSuppressLevel | Specifies whether Real-Time Workshop 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 native word size in the Emulation 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 Real-Time Workshop documentation for more information. | ||
Toolbar | Show or hide the toolbar on the Model Editor window. Set by Toolbar on the View menu of the Model Editor. | 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 Model History Controls for more information. | string — {'UpdateHistoryNever'} | 'UpdateHistoryWhenSave' | |
UpdateModelReferenceTargets | Specify whether to rebuild simulation and Real-Time Workshop 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 used to modify the model (read only). | release version number | |
Draws lines that carry vector or matrix signals wider than lines that carry scalar signals. Set by Wide Nonscalar Lines on the Format > Port/Signal Displays menu of the Model Editor. | 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 Model Editor window expressed as a percentage of normal (100%) or by the keywords FitSystem or FitSelection. Set by the zoom commands on the View menu of the Model Editor. | string — {'100'} | 'FitSystem' | 'FitSelection' |
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 SaveFcn callback.
set_param('mymodel','SaveFcn','my_save_cb')
![]() | Model and Block Parameters | Common Block Parameters | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |