Access Simscape data in Simulation Manager

2 Ansichten (letzte 30 Tage)
Federico Toso
Federico Toso am 6 Jul. 2022
Kommentiert: Federico Toso am 27 Jun. 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.

Akzeptierte Antwort

Abhishek
Abhishek am 26 Jun. 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:

Weitere Antworten (0)

Kategorien

Mehr zu Data Logging finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by