Simulink 'To Workspace' block inactivated when additional simulation parameters are provided
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
HaMo
el 25 de Mayo de 2018
I have a Simulink model with a 'To Workspace' function block for trouble-shooting purposes.
If I type
sim('MyModel.slx')
data is loaded into the workpace.
If I type
sim('MyModel.slx', 'StartTime', '0')
no data is loaded. The default start time is also 0.
Is this a bug, a feature or a known limitation?
0 comentarios
Respuesta aceptada
Jim Riggs
el 25 de Mayo de 2018
Editada: Jim Riggs
el 25 de Mayo de 2018
I have noticed a similar issue using simstate. see the link.
This appears to be a feature.
If you look at the link, you will see that all you have to do is set parameter values using "set_param" before running with "sim".
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!