Main Content

Simulink.sdi.setRunNamingRule

Specify the Simulation Data Inspector run naming rule

Description

Simulink.sdi.setRunNamingRule('rule') sets the Simulation Data Inspector rule for naming runs created by simulating a Simulink® model.

example

Examples

collapse all

Set the Simulation Data Inspector run naming rule such that it displays the model name followed by the run number.

Simulink.sdi.setRunNamingRule("<model_name> Run <run_index>")

Input Arguments

collapse all

Simulation Data Inspector naming rule for runs created by simulating a Simulink model, specified as a string or character vector. By default, the Simulation Data Inspector uses 'Run <run_index>: <model_name>. To pull data from the run as part of the naming rule, use any of these tokens:

  • <run_index> – Run index in the Simulation Data Inspector repository.

  • <model_name> – Name of the model simulated to create the run.

  • <time_stamp> – Start time for the simulation that created the run.

  • <sim_mode> – Simulation mode used for the simulation that created the run.

Example: "<time_stamp> Simulation <run_index>: <model_name>"

Example: "<model_name> - <run_index>"

Alternatives

To modify the run naming rule interactively, click Preferences. In the New Run section, in the Naming Rule text box, enter the naming rule. You can also rename a run by modifying the Name property of the corresponding Simulink.sdi.Run object.

Version History

Introduced in R2011b