MATLAB crashes when trying to run visualizer

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Jonathan Mortensen
Posts: 32
Joined: Wed Jul 06, 2016 1:33 pm

MATLAB crashes when trying to run visualizer

Post by Jonathan Mortensen » Fri Jan 06, 2023 3:32 pm

I have a MATLAB script that has worked for me in the past to visualize my models, but has stopped working. I'm not sure if this is due to upgrading to OpenSim 4.4 (from 4.3) or an issue caused by software updates from my IT group.

Whenever I try to set up a state variable after setting the model to use the visualizer, MATLAB crashes. Check out the attached images. Any ideas on how I can resolve this?
OffendingCode.png
OffendingCode.png (4.71 KiB) Viewed 368 times
MATLABCrash.png
MATLABCrash.png (23.21 KiB) Viewed 368 times

User avatar
Jonathan Mortensen
Posts: 32
Joined: Wed Jul 06, 2016 1:33 pm

Re: MATLAB crashes when trying to run visualizer

Post by Jonathan Mortensen » Tue Jan 10, 2023 10:38 am

Update to this:

It appears to be something to do with the MATLAB working directory. The same script either works or fails depending on whether or not the working directory is on my external hard drive. This behavior occurs for both OpenSim 4.3 and 4.4. I'd appreciate any ideas on why this behavior is occuring. Perhaps it is a MATLAB issue and not an OpenSim issue?

POST REPLY