Access Simscape data in Simulation Manager

3 次查看(过去 30 天)
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.

采纳的回答

Abhishek
Abhishek 2025-6-26
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:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Logging 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by