Main Content


List logged data names



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


collapse all

Log model signals.

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

Store logged signal data.

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