Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Standalone with command prompt

Subject: Standalone with command prompt

From: John

Date: 16 Dec, 2010 16:30:24

Message: 1 of 5

Dear all,

I have an issue after I updated the Matlab version from 2010a to 2010b. I am not getting Windows command prompt anymore when I run a Matlab executable which is compiled using deploytool.

I checked the deploytool settings,but there is nothing about Windows command prompt.

Is it disabled by default?

Thanks.

Subject: Standalone with command prompt

From: Aurelien Queffurust

Date: 17 Dec, 2010 15:18:05

Message: 2 of 5

"John " <onsekizdegilim@yahoo.co.uk> wrote in message <ieder0$2a8$1@fred.mathworks.com>...
> Dear all,
>
> I have an issue after I updated the Matlab version from 2010a to 2010b. I am not getting Windows command prompt anymore when I run a Matlab executable which is compiled using deploytool.
>
> I checked the deploytool settings,but there is nothing about Windows command prompt.
>
> Is it disabled by default?
>
> Thanks.

Check the 'Target' setting in DEPLOYTOOL. If you want the dos window , select 'Console Application' instaed of 'Windows Standalone Application'.

Aurélien

Subject: Standalone with command prompt

From: John

Date: 17 Dec, 2010 15:44:07

Message: 3 of 5

Thanks for your answer,

But Matlab 2010b (and 2010a too) doesn't offer 'Console Application' or 'Windows Standalone Application' selection when you open deploytool. Moreover, the program I want to compile is with GUI, so I need to compile as Windows Standalone Application.

The reason I want to have Windows command prompt when my program executes is to see errors if there is. Because without Windows command prompt, you can't understand when there is an error occurred (Or I am not brave enough to add try-catch to each functions or methods :))

Regards.


"Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <iefuvd$pc9$1@fred.mathworks.com>...
> "John " <onsekizdegilim@yahoo.co.uk> wrote in message <ieder0$2a8$1@fred.mathworks.com>...
> > Dear all,
> >
> > I have an issue after I updated the Matlab version from 2010a to 2010b. I am not getting Windows command prompt anymore when I run a Matlab executable which is compiled using deploytool.
> >
> > I checked the deploytool settings,but there is nothing about Windows command prompt.
> >
> > Is it disabled by default?
> >
> > Thanks.
>
> Check the 'Target' setting in DEPLOYTOOL. If you want the dos window , select 'Console Application' instaed of 'Windows Standalone Application'.
>
> Aurélien

Subject: Standalone with command prompt

From: Steven_Lord

Date: 17 Dec, 2010 16:34:34

Message: 4 of 5



"John " <onsekizdegilim@yahoo.co.uk> wrote in message
news:ieg0g7$57u$1@fred.mathworks.com...
> Thanks for your answer,
>
> But Matlab 2010b (and 2010a too) doesn't offer 'Console Application' or
> 'Windows Standalone Application' selection when you open deploytool.
> Moreover, the program I want to compile is with GUI, so I need to compile
> as Windows Standalone Application.
>
> The reason I want to have Windows command prompt when my program executes
> is to see errors if there is. Because without Windows command prompt, you
> can't understand when there is an error occurred (Or I am not brave enough
> to add try-catch to each functions or methods :))

Then start a command prompt via the Start menu and run your code from that
by using its name instead of double-clicking on the icon.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlab.wikia.com/wiki/FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: Standalone with command prompt

From: John

Date: 17 Dec, 2010 17:07:05

Message: 5 of 5

"Steven_Lord" <slord@mathworks.com> wrote in message <ieg3eq$i5v$1@fred.mathworks.com>...
>
>
> "John " <onsekizdegilim@yahoo.co.uk> wrote in message
> news:ieg0g7$57u$1@fred.mathworks.com...
> > Thanks for your answer,
> >
> > But Matlab 2010b (and 2010a too) doesn't offer 'Console Application' or
> > 'Windows Standalone Application' selection when you open deploytool.
> > Moreover, the program I want to compile is with GUI, so I need to compile
> > as Windows Standalone Application.
> >
> > The reason I want to have Windows command prompt when my program executes
> > is to see errors if there is. Because without Windows command prompt, you
> > can't understand when there is an error occurred (Or I am not brave enough
> > to add try-catch to each functions or methods :))
>
> Then start a command prompt via the Start menu and run your code from that
> by using its name instead of double-clicking on the icon.
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlab.wikia.com/wiki/FAQ
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com


Thanks for the tip but that doesn't help too.
And I just want to have command prompt back when I run the exe.

Ps: I just compiled at 2010a, and I have no problem to see windows command promt together with my compiled GUI.

Tags for this Thread

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.

Contact us