Contents

Simulink.sdi.deleteRun

Delete run from Simulation Data Inspector

Syntax

Simulink.sdi.deleteRun(runID)

Description

Simulink.sdi.deleteRun(runID) deletes a run associated with the run ID in the Simulation Data Inspector. Deleting the run removes all signal data included in the run. The Simulation Data Inspector maintains a list of runs. After deleting a run, the subsequent runs move up the list and the run index for each run changes. However, the run IDs remain the same.

Input Arguments

runID

Run ID, a unique number identifying a run.

Examples

Remove a run from the Simulation Data Inspector.

% Configure model 'slexAircraftExample' for logging and simulate
simOut = sim('slexAircraftExample','SaveOutput','on', ...
             'SaveFormat','StructureWithTime');

% Create a Simulation Data Inspector run
runID = Simulink.sdi.createRun('First Run','base',{'simOut'});

Simulink.sdi.deleteRun(runID);
Was this topic helpful?