Importing running MMCore in MATLAB

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Importing running MMCore in MATLAB

Matthew Nicholas-2
Hi all,
I have followed the instructions on the Micro-Manager website for
calling Micro-Manager from MATLAB (both the MMCore and the gui) with
success. However, both these methods create new instances of
Micro-Manager. I am wondering if it is possible to import core,gui and
acqusition engine objects to MATLAB for an instance of Micro-Manager
that is already running. What I'd like to be able to do is, instead of
starting Micro-Manager from MATLAB, to start MATLAB, connect to MM,
perform a given task, and then close MATLAB without destroying the
current Micro-Manager session. So far, I cannot find a way.

This is actually something of a followup to this older question, which
as far as I can tell, was never resolved:
http://micro-manager.3463995.n2.nabble.com/Importing-running-instance-of-MMCore-in-MATLAB-Python-td4037448.html#a4042435

Thanks in advance for your advice!

-Matt


--
Matthew Nicholas
Medical Scientist Training Program Student
Laboratory of Arne Gennerich
Department of Anatomy and Structural Biology
Albert Einstein College of Medicine
Forchheimer Building, Room 628
1300 Morris Park Avenue
Bronx, New York 10461
718.430.3446
[hidden email]

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Importing running MMCore in MATLAB

Arthur D. Edelstein
Hi Matt,

There is a built-in socket server in Beanshell that you can run from the Micro-Manager Script Panel, where you could send strings to the socket from MATLAB. See
http://www.beanshell.org/manual/remotemode.html

Please say hi to Arne from me!

Arthur


On Thu, Oct 27, 2011 at 4:53 PM, Matthew Nicholas <[hidden email]> wrote:
Hi all,
I have followed the instructions on the Micro-Manager website for
calling Micro-Manager from MATLAB (both the MMCore and the gui) with
success. However, both these methods create new instances of
Micro-Manager. I am wondering if it is possible to import core,gui and
acqusition engine objects to MATLAB for an instance of Micro-Manager
that is already running. What I'd like to be able to do is, instead of
starting Micro-Manager from MATLAB, to start MATLAB, connect to MM,
perform a given task, and then close MATLAB without destroying the
current Micro-Manager session. So far, I cannot find a way.

This is actually something of a followup to this older question, which
as far as I can tell, was never resolved:
http://micro-manager.3463995.n2.nabble.com/Importing-running-instance-of-MMCore-in-MATLAB-Python-td4037448.html#a4042435

Thanks in advance for your advice!

-Matt


--
Matthew Nicholas
Medical Scientist Training Program Student
Laboratory of Arne Gennerich
Department of Anatomy and Structural Biology
Albert Einstein College of Medicine
Forchheimer Building, Room 628
1300 Morris Park Avenue
Bronx, New York 10461
<a href="tel:718.430.3446" value="+17184303446">718.430.3446
[hidden email]

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Importing running MMCore in MATLAB

Matthew Nicholas-2
Thanks, Arthur, I did not know about that capability! It could be
useful for a lot of different interfacing tasks with Micro-Manager.
However, unless I am missing something (highly possible!), that would
mean that all Micro-Manager-MATLAB communication would need to run
through HTTP or telnet, so I'd be unable to directly access images in
MATLAB. Is there any way to import the actual java object, or is this
only possible if Micro-Manager is launched from within MATLAB in the
first place?

Thanks,
Matt

PS: Arne says hello :)

On Thu, Oct 27, 2011 at 8:28 PM, Arthur D. Edelstein
<[hidden email]> wrote:

> Hi Matt,
>
> There is a built-in socket server in Beanshell that you can run from the
> Micro-Manager Script Panel, where you could send strings to the socket from
> MATLAB. See
> http://www.beanshell.org/manual/remotemode.html
>
> Please say hi to Arne from me!
>
> Arthur
>
>
> On Thu, Oct 27, 2011 at 4:53 PM, Matthew Nicholas
> <[hidden email]> wrote:
>>
>> Hi all,
>> I have followed the instructions on the Micro-Manager website for
>> calling Micro-Manager from MATLAB (both the MMCore and the gui) with
>> success. However, both these methods create new instances of
>> Micro-Manager. I am wondering if it is possible to import core,gui and
>> acqusition engine objects to MATLAB for an instance of Micro-Manager
>> that is already running. What I'd like to be able to do is, instead of
>> starting Micro-Manager from MATLAB, to start MATLAB, connect to MM,
>> perform a given task, and then close MATLAB without destroying the
>> current Micro-Manager session. So far, I cannot find a way.
>>
>> This is actually something of a followup to this older question, which
>> as far as I can tell, was never resolved:
>>
>> http://micro-manager.3463995.n2.nabble.com/Importing-running-instance-of-MMCore-in-MATLAB-Python-td4037448.html#a4042435
>>
>> Thanks in advance for your advice!
>>
>> -Matt
>>
>>
>> --
>> Matthew Nicholas
>> Medical Scientist Training Program Student
>> Laboratory of Arne Gennerich
>> Department of Anatomy and Structural Biology
>> Albert Einstein College of Medicine
>> Forchheimer Building, Room 628
>> 1300 Morris Park Avenue
>> Bronx, New York 10461
>> 718.430.3446
>> [hidden email]
>>
>>
>> ------------------------------------------------------------------------------
>> The demand for IT networking professionals continues to grow, and the
>> demand for specialized networking skills is growing even more rapidly.
>> Take a complimentary Learning@Cisco Self-Assessment and learn
>> about Cisco certifications, training, and career opportunities.
>> http://p.sf.net/sfu/cisco-dev2dev
>> _______________________________________________
>> micro-manager-general mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/micro-manager-general
>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> micro-manager-general mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/micro-manager-general
>
>



--
Matthew Nicholas
Medical Scientist Training Program Student
Laboratory of Arne Gennerich
Department of Anatomy and Structural Biology
Albert Einstein College of Medicine
Forchheimer Building, Room 628
1300 Morris Park Avenue
Bronx, New York 10461
718.430.3446
[hidden email]

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Importing running MMCore in MATLAB

Arthur D. Edelstein
Hi Matt,

If you want the actual java object, I think you will need to serialize it on the Micro-Manager side and then deserialize it in MATLAB. You could use a java Socket on the MATLAB side to connect to the Beanshell socket server. If you are wanting to transfer images, I can imagine this might be rather inefficient and it might even be faster to save a file to disk from MM and then read it in in MATLAB.

But if you want to quickly transfer data in memory, I think you will find it is more efficient to launch Micro-Manager from MATLAB.

Arthur


On Fri, Oct 28, 2011 at 2:28 PM, Matthew Nicholas <[hidden email]> wrote:
Thanks, Arthur, I did not know about that capability! It could be
useful for a lot of different interfacing tasks with Micro-Manager.
However, unless I am missing something (highly possible!), that would
mean that all Micro-Manager-MATLAB communication would need to run
through HTTP or telnet, so I'd be unable to directly access images in
MATLAB. Is there any way to import the actual java object, or is this
only possible if Micro-Manager is launched from within MATLAB in the
first place?

Thanks,
Matt

PS: Arne says hello :)

On Thu, Oct 27, 2011 at 8:28 PM, Arthur D. Edelstein
<[hidden email]> wrote:
> Hi Matt,
>
> There is a built-in socket server in Beanshell that you can run from the
> Micro-Manager Script Panel, where you could send strings to the socket from
> MATLAB. See
> http://www.beanshell.org/manual/remotemode.html
>
> Please say hi to Arne from me!
>
> Arthur
>
>
> On Thu, Oct 27, 2011 at 4:53 PM, Matthew Nicholas
> <[hidden email]> wrote:
>>
>> Hi all,
>> I have followed the instructions on the Micro-Manager website for
>> calling Micro-Manager from MATLAB (both the MMCore and the gui) with
>> success. However, both these methods create new instances of
>> Micro-Manager. I am wondering if it is possible to import core,gui and
>> acqusition engine objects to MATLAB for an instance of Micro-Manager
>> that is already running. What I'd like to be able to do is, instead of
>> starting Micro-Manager from MATLAB, to start MATLAB, connect to MM,
>> perform a given task, and then close MATLAB without destroying the
>> current Micro-Manager session. So far, I cannot find a way.
>>
>> This is actually something of a followup to this older question, which
>> as far as I can tell, was never resolved:
>>
>> http://micro-manager.3463995.n2.nabble.com/Importing-running-instance-of-MMCore-in-MATLAB-Python-td4037448.html#a4042435
>>
>> Thanks in advance for your advice!
>>
>> -Matt
>>
>>
>> --
>> Matthew Nicholas
>> Medical Scientist Training Program Student
>> Laboratory of Arne Gennerich
>> Department of Anatomy and Structural Biology
>> Albert Einstein College of Medicine
>> Forchheimer Building, Room 628
>> 1300 Morris Park Avenue
>> Bronx, New York 10461
>> <a href="tel:718.430.3446" value="+17184303446">718.430.3446
>> [hidden email]
>>
>>
>> ------------------------------------------------------------------------------
>> The demand for IT networking professionals continues to grow, and the
>> demand for specialized networking skills is growing even more rapidly.
>> Take a complimentary Learning@Cisco Self-Assessment and learn
>> about Cisco certifications, training, and career opportunities.
>> http://p.sf.net/sfu/cisco-dev2dev
>> _______________________________________________
>> micro-manager-general mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/micro-manager-general
>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> micro-manager-general mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/micro-manager-general
>
>



--
Matthew Nicholas
Medical Scientist Training Program Student
Laboratory of Arne Gennerich
Department of Anatomy and Structural Biology
Albert Einstein College of Medicine
Forchheimer Building, Room 628
1300 Morris Park Avenue
Bronx, New York 10461
<a href="tel:718.430.3446" value="+17184303446">718.430.3446
[hidden email]

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general
Loading...