Re: MATLAB crash when loading configuration MMCore
I use a new version of Matlab with Windows 7 to work with micromanager and I
have just been using the StartMMStudio.m matlab file that is included in the
So my matlab code just looks like:
currDir = cd;
mm = StartMMStudio(); %Get an instance of MMStudio
cd(currDir) % load original dir
You can then get the core using: mm.core()
This has worked fine for me. It is worth noting however that I can only run
micromanager once per instance of matlab. If I close micromanager and then
try to open it again without first closing and reopening Matlab I will get a
> We have been using MM through Matlab via the MMCoreJ for 6 month and
> it was great.
> We have an Andor iXon camera and a Nikon Ti. the computer was old and
> run Windows XP with MATLAB 2013.
> We just updated to a new one. Windows 10 / MATLAB 2018.
> I did the same setup as before:
> - Installed MM (Nightly build 20181101) in a folder without spaces
> - Installed the drivers of camera and microscope ->*Micro Manager is
> working and controlling the setup just fine.*
> On MATLAB:
> - Created a javaclasspath file through edit([prefdir
> '/javaclasspath.txt']); and added all jar files that I could find.
> - Added a User variable AND system variable in the environment
> variables in the system.
> I was not able to edit the librarypath.txt as new versions of MATLAB
> apparently protect the file.
I think that is the key to your problem. You can load the Java code
that "binds" to the compiles C++ code that should be found by Matlab
through the librarypath.txt file content. Since it does not find the
compiles code, Matlab crashes once you call into the CMMCore object.
You should contact Mathworks and ask them how to fix this (or ask them
to fix it, you pay them plenty after all).