Page 1 of 1

MATLAB crashes when trying to run visualizer

Posted: Fri Jan 06, 2023 3:32 pm
by jonmortensen
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 369 times
MATLABCrash.png
MATLABCrash.png (23.21 KiB) Viewed 369 times

Re: MATLAB crashes when trying to run visualizer

Posted: Tue Jan 10, 2023 10:38 am
by jonmortensen
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?