Documentation

Simulink.sdi.getAllRunIDs

Get all run identifiers within the Simulation Data Inspector

Syntax

runIDs = Simulink.sdi.getAllRunIDs

Description

runIDs = Simulink.sdi.getAllRunIDs returns an n-by-1 matrix of all numerical run identifiers for runs in the Inspect pane of the Simulation Data Inspector.

Examples

collapse all

%load example system
load_system('slexAircraftExample')

%simulate system and save output
simOut = sim('slexAircraftExample', 'SaveFormat', 'StructureWithTime');
simOut1 = sim('slexAircraftExample', 'SaveFormat', 'StructureWithTime');

%create run from simulation output
Simulink.sdi.createRun(simOut);
Simulink.sdi.createRun(simOut1);

%get run IDs for runs in the Simulation Data Inspector
runIDs = Simulink.sdi.getAllRunIDs;

Output Arguments

collapse all

An n-by-1 matrix containing all of the run IDs for runs of the specified group in the Simulation Data Inspector.

Introduced in R2017a

Was this topic helpful?