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

4 次查看(过去 30 天)
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 个评论
Alec Stothert
Alec Stothert 2019-12-17
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?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by