Main Content

who

List logged data names

Description

names = who(sim_obj) returns a list of logged data names.

example

Examples

collapse all

Log model signals.

Pressures = Simulink.SimulationData.SignalLoggingInfo;
Pressures.BlockPath = 'sdoHydraulicCylinder/Cylinder Assembly';
Pressures.OutputPortIndex = 1;

Store logged signal data.

openExample("sdoHydraulicCylinder")
simulator = sdo.SimulationTest('sdoHydraulicCylinder');
simulator.LoggingInfo.Signals = Pressures;
simulator = sim(simulator);

Find logged data sets.

names = who(simulator);

Input Arguments

collapse all

Simulation scenario for a model, specified as an sdo.SimulationTest object.

Output Arguments

collapse all

Logged data set names, returned as a cell array of character vectors.

Version History

Introduced in R2011b