Matlab - Update same visualiser rather than start a new one

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Rory Turnbull
Posts: 28
Joined: Mon Dec 16, 2019 1:57 am

Matlab - Update same visualiser rather than start a new one

Post by Rory Turnbull » Sat Mar 06, 2021 3:16 am

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

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

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

Post by Ayman Habib » Mon Mar 08, 2021 11:31 am

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

POST REPLY