Contenu principal

Simulink.sdi.resetRunNamingRule

Revert the Simulation Data Inspector run naming rule to default

Description

Simulink.sdi.resetRunNamingRule resets the run naming rule the Simulation Data Inspector uses to assign a name to runs created through simulating a Simulink® model to its default 'Run <run_index>: <model_name>'.

example

Examples

collapse all

Set the Simulation Data Inspector run naming rule such that it displays the model name followed by the run number.

Simulink.sdi.setRunNamingRule("<model_name> Run <run_index>")

Reset the Simulation Data Inspector naming rule to the default.

Simulink.sdi.resetRunNamingRule

Check that the default run naming rule has been restored.

nameRule = Simulink.sdi.getRunNamingRule
nameRule =

    'Run <run_index>: <model_name>'

Alternatives

You can also reset all Simulation Data Inspector preferences, including the run naming rule. To reset preferences interactively, in the Preferences menu, click Restore Defaults. To reset preferences programmatically use Simulink.sdi.clearPreferences.

Version History

Introduced in R2015a