Contenuto principale

Simulink.sdi.getRunNamingRule

Get the Simulation Data Inspector rule for naming runs

Description

namingRule = Simulink.sdi.getRunNamingRule returns the run naming rule as a character vector. The run naming rule can contain one or more tokens that update for each run, for example, <run_index>. The run naming rule applies to runs automatically created through simulating a model in Simulink®.

example

Examples

collapse all

nameRule = Simulink.sdi.getRunNamingRule
nameRule =

    'Run <run_index>: <model_name>'

Output Arguments

collapse all

Character vector that specifies the naming rule the Simulation Data Inspector uses to name the runs automatically created through simulating a Simulink model. The run naming rule can contain any of the following tokens that represent information pulled for each run:

  • <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.

Alternatives

To view the run naming rule interactively, click Preferences. In the New Run section, the software displays the naming rule in the Naming Rule text box.

Version History

Introduced in R2015a