Thread Subject: multiple instances of MATLAB

Subject: multiple instances of MATLAB

From: Irvin

Date: 22 Jun, 2009 04:37:01

Message: 1 of 7

Hi there,

I require to run 4 instances of matlab to communicate with 4 different devices. I can do this by creating multiple COM servers using the actxerver function. However I do not know how to get each matlab server to run its own m-file(s). Any advice/help on this would be great.

Cheers

Irvin

Subject: multiple instances of MATLAB

From: TideMan

Date: 22 Jun, 2009 05:05:47

Message: 2 of 7

On Jun 22, 4:37 pm, "Irvin " <ie...@student.canterbury.ac.nz> wrote:
> Hi there,
>
> I require to run 4 instances of matlab to communicate with 4 different devices. I can do this by creating multiple COM servers using the actxerver function. However I do not know how to get each matlab server to run its own m-file(s).  Any advice/help on this would be great.
>
> Cheers
>
> Irvin

AFAIK, you can just open a new Matlab and it will work OK and
independent of the other open Matlabs.
I've done it inadvertently and had no trouble.

Subject: multiple instances of MATLAB

From: Russell Brinkworth

Date: 2 Sep, 2009 05:51:01

Message: 3 of 7

TideMan <mulgor@gmail.com> wrote in message <e57f029e-3bae-44e2-bea8-34769e903ae3@f38g2000pra.googlegroups.com>...
> On Jun 22, 4:37?pm, "Irvin " <ie...@student.canterbury.ac.nz> wrote:
> > Hi there,
> >
> > I require to run 4 instances of matlab to communicate with 4 different devices. I can do this by creating multiple COM servers using the actxerver function. However I do not know how to get each matlab server to run its own m-file(s). ?Any advice/help on this would be great.
> >
> > Cheers
> >
> > Irvin
>
> AFAIK, you can just open a new Matlab and it will work OK and
> independent of the other open Matlabs.
> I've done it inadvertently and had no trouble.

I used to be able to run multiple instances of Matlab by just clicking on the start Matlab icon. Since getting 2009a this just returns me to the currently running window. Any idea why this changed or if I have got a setting wrong? Thanks.

Subject: multiple instances of MATLAB

From: Rodney Thomson

Date: 2 Sep, 2009 06:06:02

Message: 4 of 7

"Russell Brinkworth" <randrhome@iprimus.com.au> wrote in message <h7l145$mj5$1@fred.mathworks.com>...
> TideMan <mulgor@gmail.com> wrote in message <e57f029e-3bae-44e2-bea8-34769e903ae3@f38g2000pra.googlegroups.com>...
> > On Jun 22, 4:37?pm, "Irvin " <ie...@student.canterbury.ac.nz> wrote:
> > > Hi there,
> > >
> > > I require to run 4 instances of matlab to communicate with 4 different devices. I can do this by creating multiple COM servers using the actxerver function. However I do not know how to get each matlab server to run its own m-file(s). ?Any advice/help on this would be great.
> > >
> > > Cheers
> > >
> > > Irvin
> >
> > AFAIK, you can just open a new Matlab and it will work OK and
> > independent of the other open Matlabs.
> > I've done it inadvertently and had no trouble.
>
> I used to be able to run multiple instances of Matlab by just clicking on the start Matlab icon. Since getting 2009a this just returns me to the currently running window. Any idea why this changed or if I have got a setting wrong? Thanks.

You still can. When i clock on my MATLAB 2009a shortcut it opens a new instance each time.

However, one thing that WAS changed in a recent release was that double clicking a .fig, .mat or .m file would open that file up in any existing instance of MATLAB.

Maybe check your MATLAB shortcut, ensure that it is indeed a shortcut pointing ot something like:
"C:\Program Files\MATLAB\R2009a\bin\matlab.exe"

Subject: multiple instances of MATLAB

From: Russell Brinkworth

Date: 2 Sep, 2009 06:52:02

Message: 5 of 7

"Rodney Thomson" <readmore@iheartmatlab.blogspot.com> wrote in message <h7l20a$iht$1@fred.mathworks.com>...
> "Russell Brinkworth" <randrhome@iprimus.com.au> wrote in message <h7l145$mj5$1@fred.mathworks.com>...
> > TideMan <mulgor@gmail.com> wrote in message <e57f029e-3bae-44e2-bea8-34769e903ae3@f38g2000pra.googlegroups.com>...
> > > On Jun 22, 4:37?pm, "Irvin " <ie...@student.canterbury.ac.nz> wrote:
> > > > Hi there,
> > > >
> > > > I require to run 4 instances of matlab to communicate with 4 different devices. I can do this by creating multiple COM servers using the actxerver function. However I do not know how to get each matlab server to run its own m-file(s). ?Any advice/help on this would be great.
> > > >
> > > > Cheers
> > > >
> > > > Irvin
> > >
> > > AFAIK, you can just open a new Matlab and it will work OK and
> > > independent of the other open Matlabs.
> > > I've done it inadvertently and had no trouble.
> >
> > I used to be able to run multiple instances of Matlab by just clicking on the start Matlab icon. Since getting 2009a this just returns me to the currently running window. Any idea why this changed or if I have got a setting wrong? Thanks.
>
> You still can. When i clock on my MATLAB 2009a shortcut it opens a new instance each time.
>
> However, one thing that WAS changed in a recent release was that double clicking a .fig, .mat or .m file would open that file up in any existing instance of MATLAB.
>
> Maybe check your MATLAB shortcut, ensure that it is indeed a shortcut pointing ot something like:
> "C:\Program Files\MATLAB\R2009a\bin\matlab.exe"

Thanks. I was running to startMATLB (under contents) rather than MATLAB (under bin). startMATLAB was fine for 2007 and 2008 but not for 2009a.

Subject: multiple instances of MATLAB

From: Steven Lord

Date: 2 Sep, 2009 13:56:47

Message: 6 of 7


"Russell Brinkworth" <randrhome@iprimus.com.au> wrote in message
news:h7l4mi$7k3$1@fred.mathworks.com...
> "Rodney Thomson" <readmore@iheartmatlab.blogspot.com> wrote in message
> <h7l20a$iht$1@fred.mathworks.com>...
>> "Russell Brinkworth" <randrhome@iprimus.com.au> wrote in message
>> <h7l145$mj5$1@fred.mathworks.com>...

*snip*

>> You still can. When i clock on my MATLAB 2009a shortcut it opens a new
>> instance each time.
>>
>> However, one thing that WAS changed in a recent release was that double
>> clicking a .fig, .mat or .m file would open that file up in any existing
>> instance of MATLAB.
>>
>> Maybe check your MATLAB shortcut, ensure that it is indeed a shortcut
>> pointing ot something like:
>> "C:\Program Files\MATLAB\R2009a\bin\matlab.exe"
>
> Thanks. I was running to startMATLB (under contents) rather than MATLAB
> (under bin). startMATLAB was fine for 2007 and 2008 but not for 2009a.

Since your reply suggests you're using MATLAB on Mac OS X, take a look at
this document:

http://www.mathworks.com/support/solutions/en/data/1-8G0VT7/?solution=1-8G0VT7

I believe this is related to this change described in the Release Notes for
release R2008b:

http://www.mathworks.com/access/helpdesk/help/techdoc/rn/bropbi9-1.html#brpqeu0-1

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Subject: multiple instances of MATLAB

From: Cesare

Date: 3 Nov, 2009 13:25:03

Message: 7 of 7

With R2009b it seems to be impossible to run multiple instances: also clicking on the app in the package won't work. Any solution?
Thanks,
Cesare

"Steven Lord" <slord@mathworks.com> wrote in message <h7ltiu$64r$1@fred.mathworks.com>...
>
> "Russell Brinkworth" <randrhome@iprimus.com.au> wrote in message
> news:h7l4mi$7k3$1@fred.mathworks.com...
> > "Rodney Thomson" <readmore@iheartmatlab.blogspot.com> wrote in message
> > <h7l20a$iht$1@fred.mathworks.com>...
> >> "Russell Brinkworth" <randrhome@iprimus.com.au> wrote in message
> >> <h7l145$mj5$1@fred.mathworks.com>...
>
> *snip*
>
> >> You still can. When i clock on my MATLAB 2009a shortcut it opens a new
> >> instance each time.
> >>
> >> However, one thing that WAS changed in a recent release was that double
> >> clicking a .fig, .mat or .m file would open that file up in any existing
> >> instance of MATLAB.
> >>
> >> Maybe check your MATLAB shortcut, ensure that it is indeed a shortcut
> >> pointing ot something like:
> >> "C:\Program Files\MATLAB\R2009a\bin\matlab.exe"
> >
> > Thanks. I was running to startMATLB (under contents) rather than MATLAB
> > (under bin). startMATLAB was fine for 2007 and 2008 but not for 2009a.
>
> Since your reply suggests you're using MATLAB on Mac OS X, take a look at
> this document:
>
> http://www.mathworks.com/support/solutions/en/data/1-8G0VT7/?solution=1-8G0VT7
>
> I believe this is related to this change described in the Release Notes for
> release R2008b:
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/rn/bropbi9-1.html#brpqeu0-1
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
>

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
multiple instances Russell Brinkworth 2 Sep, 2009 01:54:07
multiple instances Sprinceana 22 Jun, 2009 04:18:10
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com