Access Simscape data in Simulation Manager

2 visualizaciones (últimos 30 días)
Federico Toso
Federico Toso el 6 de Jul. de 2022
Comentada: Federico Toso el 27 de Jun. de 2025
I performed multiple simulations of my model using the "Multiple simulations" option in Simulink. My "Design study" is very simple an involves the sweep of a single parameter.
After I complete all the simulations, when I open the Simulation Manager I do not have access to any Simscape data inside the "Data" tab of the "Plot Properties" window --> I only have access to the value of the parameter I am sweepeing throughout the Simulations. Is there a way to access all Simscape data too?
One more info: all Simscape data are correctly logged whenever I run a "standalone" simulation. Only with Multiple Simulations I have this issue.

Respuesta aceptada

Abhishek
Abhishek el 26 de Jun. de 2025
I understand you want to access Simscape simulation data when running multiple simulation. To ensure that Simscape data is logged correctly, follow these steps:
  • Go to “Model Settings” > “Simscape” and set “Log simulation data” to “All”
  • Go to the “Simulation” tab, then under “Review Results”, click “Data Inspector”
Simulink uses the Simulation Data Inspector (SDI) to manage logged data. By default, SDI automatically archives data from previous runs (see the red rectangle in the image below), showing only the latest run’s data.
To view data from earlier runs, simply drag the archived runs from the archive section into the main view as shown:
Alternatively, if all simulation runs data should be kept visible without manually restoring them each time, auto-archiving functionality can be disabled by entering the following command in the MATLAB Command Window:
Simulink.sdi.setAutoArchiveMode(0); % To disable auto-archiving
mode = Simulink.sdi.getAutoArchiveMode; % To check the status of auto archive mode
To know more about configuring the SDI, refer to the MATLAB documentation below:

Más respuestas (0)

Categorías

Más información sobre Data Logging en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by