Re: [micro-manager-general] Matlab Configuration - CMMCore Object
Status: Beta
Brought to you by:
nicost
|
From: Kyle D. <kyl...@gm...> - 2018-07-03 07:00:58
|
Hi Kiana Go,
On Fri, Jun 29, 2018 at 8:51 PM, Kiana Go <gok...@be...> wrote:
> Hi Kyle,
>
> Quick question. I am using a XYStage Prior and want to load it. Is
> the following correct? The stage is Prior and its corresponding adapter
> is the ProScanIII.
>
> *mmc.loadDevice("XYStage", "Prior", "ProScanIII");*
> * throw (CMMError)*
>
> or should it be like:
>
> *mmc.loadDevice("XYStage", "Prior", "Prior");*
> * throw (CMMError)*
>
>
I don't currently have Micro-Manager installed on the machine in front of
me, but I believe you can find an explanation in the Micro-Manager
documentation here:
https://micro-manager.org/wiki/Micro-Manager_Programming%20Guide#Loading_devices
(Keep in mind that this is Java code, but the arguments to loadDevice()
should be the same.)
In particular:
We can use it like this:
CMMCore core = new CMMCore();
core.loadDevice("Camera", "DemoCamera", "DCam");
The command above has three parameters: label, library and name. Device
label is the name we want to assign to a specific device. It is completely
arbitrary and entirely up to us. We chose to call our camera simply
"Camera". "DemoCamera" is the dynamic library name where the adapter
resides. "DCam" is the name of the device adapter we want to load.
I hope this helps!
Kyle
|