Re: [micro-manager-general] Matlab Configuration - CMMCore Object
Status: Beta
Brought to you by:
nicost
|
From: Kyle D. <kyl...@gm...> - 2018-06-27 06:06:29
|
Hi Kiana Go,
On Tue, Jun 26, 2018 at 8:49 PM, Kiana Go <gok...@be...> wrote:
> In addition, I am also receiving the error "Undefined function or variable
> 'CMMCore'."
>
> >> CMMCore core = new CMMCore();
> Undefined function or variable 'CMMCore'.
>
> >> import mmcorej.*;
> >> mmc = CMMCore;
> >> mmc.loadSystemConfiguration ('/Applications/Micro-
> Manager1.4/MMConfig_demo.cfg');
> >> CMMCore core = new CMMCore();
> No constructor 'mmcorej.CMMCore' with matching signature found.
>
>
>
The line `CMMCore core = new CMMCore();` is Java code, not MATLAB. Remove
this line from your script and you can access the core through the `mmc`
object which you already created with `mmc = CMMCore;`.
Write back if you're still having problems.
Cheers,
Kyle
P.S. You may also want to look at the file called StartMMStudio.m inside
the Micro-Manager root directory. This script provides a common interface
to the most commonly used Micro-Manager objects in MATLAB.
|