simulation control in m-file
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
'sim' command is usually used for handling simulink in m-file.
I want to pause the sim when some conditon is matched, is it possible using 'sim' command in m-file? If not, is there no way to do that?
0 comentarios
Respuesta aceptada
TAB
el 15 de Feb. de 2013
set_param('ModelName', 'SimulationCommand', 'start')
set_param('ModelName', 'SimulationCommand', 'stop')
set_param('ModelName', 'SimulationCommand', 'pause') <- Pause simulation
set_param('ModelName', 'SimulationCommand', 'continue')
set_param('ModelName', 'SimulationCommand', 'update')
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!