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

1 visualizzazione (ultimi 30 giorni)
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 Commento
Alec Stothert
Alec Stothert il 17 Dic 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?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Simulink Environment Customization in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by