Re: [micro-manager-general] Matlab Configuration - CMMCore Object
Status: Beta
Brought to you by:
nicost
|
From: Kyle D. <kyl...@gm...> - 2018-07-20 07:11:29
|
Hi Kiana Go,
On Fri, Jul 13, 2018 at 2:02 AM, Kiana Go <gok...@be...> wrote:
>
> >>import mmcorej.*;
> >> mmc= CMMCore;
> >> mmc.loadDevice("Port", "SerialManager", "COM5");
> >> mmc.initializeDevice("Port");
> >> mmc.loadDevice("ZStage", "Prior", "ZStage");
>
> The ZStage is connected to serial port COM5. The ZStage also works
> fine through Micro-Manager and its own software controller. Thus, it is
> connected. There seems to be a problem with matlab's interface with
> Micro-Manager to recognize and configure the ZStage.
> For reference, I am using Prior's ZStage. I am also using the ProScan
> III controller. Not sure why the ZStage will not initialize and move when
> given the appropriate methods.
>
I'm sorry for the late reply; I've been a bit busy lately.
I do not have much experience with loading devices from MATLAB, so I might
be wrong about this. At first glance, it looks like you're trying to assign
two devices to COM5, which to me seems like the most likely source of the
problem.
I don't think that you need to assign a SerialManager device to COM5, since
this is a device adapter for general serial port communications. I think
you're getting an error when you run the line mmc.loadDevice("ZStage",
"Prior", "ZStage"); because the SerialManager is already assigned to the
same COM port.
When you tested this in the Micro-Manager GUI, did you also add a
SerialManager device adapter to your configuration at COM5, or only the
Prior stage?
Best regards,
Kyle
|