Documentation

Simulink.sdi.resetRunNamingRule

Reset the Simulation Data Inspector run naming rule to the default

Syntax

Simulink.sdi.resetRunNamingRule

Description

example

Simulink.sdi.resetRunNamingRule resets the run naming rule to the default rule tokens for Simulation Data Inspector runs.

Examples

collapse all

% Load the model
sldemo_absbrake;

% Change the run naming rule
Simulink.sdi.setRunNamingRule('My special simulation');

% Record logged signals and send them to the Simulation Data Inspector
set_param('sldemo_absbrake','InspectSignalLogs',1);

% Run the simulation
set_param('sldemo_absbrake','SimulationCommand','Start');

% Reset the naming rule
Simulink.sdi.resetRunNamingRule;

% Run the simulation again
set_param('sldemo_absbrake','SimulationCommand','Start');

% Open the Simulation Data Inspector
Simulink.sdi.view;

The first run in the Inspect pane of the Simulation Data Inspector uses the run naming rule My special simulation, and the second run uses the default run naming rule Run <run_index>: <model_name>, which appears as Run 2: sldemo_absbrake.

Introduced in R2015a

Was this topic helpful?