Clear Filters
Clear Filters

"generateS​imulationE​nsemble" function not working as intended?

4 views (last 30 days)
Hi! I am using "generateSimulationEnsemble" to generate dataset from my simulink model that also contains some simscape blocks.I am using the simulation inputs as shown below:
simin(1) = Simulink.SimulationInput(mdl);
simin(1) = simin(1).setVariable('var',1);
Simulations are executing perfectly and the variables that I am logging in the Simulink model are being stored in the generated matfiles. However:
  1. the variables that I set, like 'var' in second line of code above, are not being stored in the generated matfiles.
  2. only'logsout' and 'SimulationMetadata' are included in the matfiles. As per documentation of the "generateSimulationEnsemble" function, "SimulationInput" and "PMSignalLogName" must have been saved as well. However, they are not being saved.
Kindly suggest what I must be doing wrong?
  1 Comment
Alec Stothert
Alec Stothert on 17 Dec 2019
Adding the SimulationInput and PMSignalLogName are done post simulation, was there an error somewhere, i.e., is the second output argument of generateSimulationEnsemble not empty? Also which MATLAB version are you using R2019b?

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!