%% Find Logged Data Set
% Log model signals.

Pressures = Simulink.SimulationData.SignalLoggingInfo;
Pressures.BlockPath = 'sdoHydraulicCylinder/Cylinder Assembly';
Pressures.OutputPortIndex = 1;
simulator = sdo.SimulationTest('sdoHydraulicCylinder');
simulator.LoggingInfo.Signals = Pressures;

%
% Run a simulation.

sim = sim(simulator);

%
% Search for logged data.

sim_log = find(simulator,'sdoHydraulicCylinder');

% Copyright 2015 The MathWorks, Inc.