Main Content

Model Simulation

Run current model with specified simulation parameters

Description

This component runs the current model using specified simulation parameters. Ensure that this component has the Model Loop component as its parent.

For more information on simulation parameters, see Configure Simulation Conditions.

I/O Parameters

Use model's workspace I/O variable names

Use the names of the parameters specified in the Simulation Parameters dialog box.

The following options are available if you do not select the Use model's workspace I/O variable names option:

  • Time : Specifies a new variable name for the Time parameter.

  • States: Specifies a new variable name for the States parameter.

  • Output: Specifies a new variable name for the Output parameter.

Timespan

Use model's timespan values: Use the model's Start time and Stop time values, as specified in the Solver tab in the Simulation Parameters dialog box.

The following options are available if you do not select the Use model's timespan values option:

  • Start: Specifies a simulation starting time.

  • Stop: Specifies a simulation ending time.

    Note

    If you set the stop time of your model to inf (infinity) in Simulink® or on this component attribute page, Simulink Report Generator™ terminates the model simulation after 60 seconds. Terminating the report prevents the report generation process from entering an infinite loop.

Simulation Options

  • Compile model before simulation: Compiles the model before simulating, preserving scope content. Select this option if:

    • You use Simulink Coder™ Summary properties.

    • You sort systems or blocks by simulation order.

    • You use scope snapshots.

  • Simulation status messages: Displays simulation status messages, or inserts them into the report.

    • Display to command line: Sends messages to a command-line window.

    • Display to Report Generator Message List: Sends messages to the Simulink Report Generator message window.

    • Insert into report: Includes messages in the report.

  • Simulation parameters: Specifies simulation parameters.

Insert Anything into Report?

No.

Class

rptgen_sl.csl_mdl_sim

See Also

Model Loop