Documentation

Simulation Manager

Monitor multiple simulations in one window

Description

Simulation Manager allows you to monitor the status of multiple simulations. Using this app, you can:

  • View the progress of the simulations in a high-level grid view or a detailed list view.

  • Find the errored simulations.

  • Abort simulations.

  • Select a simulation and view its specifications.

  • View simulation results in the Simulation Data Inspector.

Open the Simulation Manager App

  • parsim command – Set the argument ShowSimulationManager to on with Parallel Computing Toolbox. Parsim command uses a SimulationInput object to run simulations. For more information, see Simulink.SimulationInput.

    out = parsim(in, 'ShowSimulationManager', 'on')

  • sim command – Set the argument ShowSimulationManager to on.

  • To reopen the Simulation Manager, use the command openSimulationManager('modelName'). This command lets you reopen the last running session.

Examples

Open Simulation Manager

Open the model sldemo_suspn_3dof and create a set of sweep values.

mdl = 'sldemo_suspn_3dof';
open_system(mdl);
Cf_sweep = Cf*(0.05:0.1:0.95);
numSims = length(Cf_sweep);

Create an array of Simulink.SimulationInput objects to modify the block parameter Road-Suspension Interaction with the sweep values.

for i = numSims:-1:1
 in(i) = Simulink.SimulationInput(mdl);
 in(i) = setBlockParameter(in(i), [mdl '/Road-Suspension Interaction'], 'Cf', num2str(Cf_sweep(i)));
end

Run multiple simulations and open the Simulation Manager to monitor them.

out = parsim(in, 'ShowSimulationManager', 'on')​

In the absence of Parallel Computing Toolbox™, the simulations run in serial.

Using Simulation Manager

Once you run the parsim command, the Simulation Manager UI opens up as follows:

The progress bar on top right is color coded based on the status of the simulations.

You can view all the multiple simulations in a detailed list view. This view gives you an option to add or delete columns to the view. Use the button, to choose which columns to display. You can also sort the colums based on your preference.

You can view more information about a particular run by clicking on it. When you click on a run, simulation details pop at the bottom of the window.

To hide the details of the selected run, click the Simulation Details button, .

Open Selected button, , allows you to open the model with the specifications of the selected run.

You can view the results of one or more runs in the Simulation Data Inspector by clicking the Show Results button, . Clicking on Show Results creates a Simulation Data Inspector run from the Simulin.SimulationOutput object and is displayed in Simulink Data Inspector. You can also return your results in the Simulin.SimulationOutput object.

To stop the job at the beginning of your simulations, you can use the Stop Job button, .

Was this topic helpful?