Documentation

Simulink.sdi.setRunNamingRule

Specify a run naming rule

Syntax

Simulink.sdi.setRunNamingRule(rule)

Description

example

Simulink.sdi.setRunNamingRule(rule) specifies a template for naming a run in the Simulation Data Inspector.

Examples

collapse all

Simulink.sdi.setRunNamingRule(...
   'Run <run_index> : <model_name> : <sim_mode>');

After recording a run, in the Signal Browser table of the Simulation Data Inspector, the run appears with a name similar to the following:

Run 1 : slexAircraftExample : normal

Input Arguments

collapse all

A character vector using predefined tokens and regular characters to create a template for run names. The available tokens are

  • <run_index> — Sequential number of each run

  • <model_name> — Name of model

  • <time_stamp> — Run creation time

  • <sim_mode> — Simulation mode for recorded run

The tokens are contained within a character vector. For example:

Simulink.sdi.setRunNamingRule('Run <run_index> : <model_name>');

Alternatives

You can modify run naming rule using the Simulation Data Inspector UI. The run properties are located on the New Run tab of the Simulation Data Inspector preferences menu. For more information, see Organize Your Simulation Data Inspector Workspace.

Introduced in R2011b

Was this topic helpful?