Page 1 of 1

Matlab - Update same visualiser rather than start a new one

Posted: Sat Mar 06, 2021 3:16 am
by mn13rt
Hello,

As the title says as I am developing a model in matlab I was wondering if there was a way to update the same visualiser window rather than opening a new one each time I run the code.


Best wishes,
Rory

Re: Matlab - Update same visualiser rather than start a new one

Posted: Mon Mar 08, 2021 11:31 am
by aymanh
Hi Rory,

The visualizer spawning occurs during initSystem call as such it's not intended to be reused. In general model builders typically use the OpenSim application/GUI where editing and visual feedback is immediately available rather than use the visualizer but I understand your context could be different (e.g. if you're adding/removing components of the model). The recommended workflow for creating a new model is to create some initial version using code, save to osim file then use the application to refine/inspect/query the model.

Hope this helps,
-Ayman