Contents

who

Class: sdo.SimulationTest
Package: sdo

List logged data names

Syntax

names = who(sim_obj)

Description

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

Input Arguments

sim_obj

sdo.SimulationTest object

Output Arguments

names

Cell array of logged data set names.

Examples

List logged data set names.

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);
Was this topic helpful?