Documentation

Simulink.sdi.setRunNamingRule

Specify a run naming rule

Syntax

  • Simulink.sdi.setRunNamingRule(rule)
    example

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

Related Examples

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

In the Simulation Data Inspector, on the Visualize tab, click Run Options. In the dialog box, enter a character vector in the Run naming rule box.

Introduced in R2011b

Was this topic helpful?