Force update scope window when running rapid accelerator mode from command line
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Kaixiang Wang
el 4 de Oct. de 2018
Respondida: Qiaoli Ji
el 19 de Dic. de 2018
As stated in Design Your Model for Effective Acceleration, Simulink does not allow the update of scope unless the rapid accelerator model is run from Simulink menu, for whatever reason. However, I am using a GUI to call the Simulink model and I wish to see real-time output using the scope, but the scopes won't update.
I wonder if there is a way to change this Simulink behaviour (this restriction really seems artificial to me). Alternatively, I wonder if there is a way to pretend (using command line code) that I am running the model from Simulink menu.
0 comentarios
Respuesta aceptada
TAB
el 5 de Oct. de 2018
Editada: TAB
el 5 de Oct. de 2018
Scope will not update with sim command, but it works with SimulationCommand (please dont ask why :P)
set_param('MyModel', 'SimulationCommand', 'start')
SimulationCommand can take one of following value:
'start' | 'stop' | 'pause' | 'continue' | 'step' | 'update' | 'WriteDataLogs' | 'SimParamDialog' | 'connect' | 'disconnect' | 'WriteExtModeParamVect' | 'AccelBuild'
3 comentarios
TAB
el 5 de Oct. de 2018
You can use get_param('mymodel', 'SimulationStatus') combined with while loop to wait for simulation to finish.
Más respuestas (1)
Qiaoli Ji
el 19 de Dic. de 2018
Hi, Kaixiang Wang , I have met a question about matlab compiler installation. So could you help me? Thanks
QQ:1069994175
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!