Effacer les filtres
Effacer les filtres

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

4 vues (au cours des 30 derniers jours)
M. Mubashir Hussain
M. Mubashir Hussain le 22 Nov 2019
Commenté : Alec Stothert le 17 Déc 2019
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 commentaire
Alec Stothert
Alec Stothert le 17 Déc 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?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by