Documentation Center

  • Trials
  • Product Updates

Contents

Simulink.sdi.setRunNamingRule

Specify a run naming rule

Syntax

Simulink.sdi.setRunNamingRule(rule)

Description

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

Input Arguments

rule

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

TokenDescription
<run_index>Sequential number of each run
<model_name>Name of model
<time_stamp>Run creation time
<sim_mode>Simulation mode for recorded run

Examples

Specify a run naming rule.

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

Alternatives

In the Simulation Data Inspector, in the Run Configuration Options dialog box, enter a string in the Run naming rule box.

Was this topic helpful?