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:
substitute for 'pause' in compiled applications

Subject: substitute for 'pause' in compiled applications

From: Jveer

Date: 27 Feb, 2009 20:12:01

Message: 1 of 5

can anyone suggest a method to mimic 'pause' in windows compiled standalone applications?

the 'pause' function only works within Matlab

Subject: substitute for 'pause' in compiled applications

From: Eric W

Date: 27 Feb, 2009 20:29:02

Message: 2 of 5

"Jveer " <jveer@jveer.com> wrote in message <go9heh$5lk$1@fred.mathworks.com>...
> can anyone suggest a method to mimic 'pause' in windows compiled standalone applications?
>
> the 'pause' function only works within Matlab

What version of Matlab are you using?

According to this:
http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/rn/bqnyle1-1.html

Using pause in Applications Generated by MATLAB Compiler Software

In Release 14 on Windows, MATLAB Compiler generated applications that used the pause command would occasionally hang. This was more likely to happen if you called pause frequently or you used very small timeout values. This problem has been resolved.

I believe this functionality has been around since Compiler Version 2.0

Subject: substitute for 'pause' in compiled applications

From: Jveer

Date: 27 Feb, 2009 20:57:01

Message: 3 of 5

"Eric W" <gmail@ewilliams2006.com> wrote in message <go9iee$cfd$1@fred.mathworks.com>...
> "Jveer " <jveer@jveer.com> wrote in message <go9heh$5lk$1@fred.mathworks.com>...
> > can anyone suggest a method to mimic 'pause' in windows compiled standalone applications?
> >
> > the 'pause' function only works within Matlab
>
> What version of Matlab are you using?
>
> According to this:
> http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/rn/bqnyle1-1.html
>
> Using pause in Applications Generated by MATLAB Compiler Software
>
> In Release 14 on Windows, MATLAB Compiler generated applications that used the pause command would occasionally hang. This was more likely to happen if you called pause frequently or you used very small timeout values. This problem has been resolved.
>
> I believe this functionality has been around since Compiler Version 2.0


i'm using r2008b. but it doesnt work!! i'm using pause as a 'press any key to continue' rather than pause(time). it doesnt work! instead f pausing the screen just disapears instantaneously!

Subject: substitute for 'pause' in compiled applications

From: Ashish Uthama

Date: 27 Feb, 2009 21:42:56

Message: 4 of 5

On Fri, 27 Feb 2009 15:57:01 -0500, Jveer <jveer@jveer.com> wrote:

> "Eric W" <gmail@ewilliams2006.com> wrote in message
> <go9iee$cfd$1@fred.mathworks.com>...
>> "Jveer " <jveer@jveer.com> wrote in message
>> <go9heh$5lk$1@fred.mathworks.com>...
>> > can anyone suggest a method to mimic 'pause' in windows compiled
>> standalone applications?
>> >
>> > the 'pause' function only works within Matlab
>>
>> What version of Matlab are you using?
>>
>> According to this:
>> http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/rn/bqnyle1-1.html
>>
>> Using pause in Applications Generated by MATLAB Compiler Software
>>
>> In Release 14 on Windows, MATLAB Compiler generated applications that
>> used the pause command would occasionally hang. This was more likely to
>> happen if you called pause frequently or you used very small timeout
>> values. This problem has been resolved.
>>
>> I believe this functionality has been around since Compiler Version 2.0
>
>
> i'm using r2008b. but it doesnt work!! i'm using pause as a 'press any
> key to continue' rather than pause(time). it doesnt work! instead f
> pausing the screen just disapears instantaneously!


Jveer,

The following code:

function tpause
    h=figure;
    plot(1:10);
    pause;
    close(h);
end

When compiled and deployed on a windows machine using R2008b and the LCC
compiler and VS 8,
pops up the figure and waits for me to press a key (with the dos window in
focus). It then
closes the figure and exits.

Are you doing anything different?

Subject: substitute for 'pause' in compiled applications

From: Jveer

Date: 27 Feb, 2009 21:53:01

Message: 5 of 5

"Ashish Uthama" <first.last@mathworks.com> wrote in message <op.up049usla5ziv5@uthamaa.dhcp.mathworks.com>...
> On Fri, 27 Feb 2009 15:57:01 -0500, Jveer <jveer@jveer.com> wrote:
>
> > "Eric W" <gmail@ewilliams2006.com> wrote in message
> > <go9iee$cfd$1@fred.mathworks.com>...
> >> "Jveer " <jveer@jveer.com> wrote in message
> >> <go9heh$5lk$1@fred.mathworks.com>...
> >> > can anyone suggest a method to mimic 'pause' in windows compiled
> >> standalone applications?
> >> >
> >> > the 'pause' function only works within Matlab
> >>
> >> What version of Matlab are you using?
> >>
> >> According to this:
> >> http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/index.html?/access/helpdesk/help/toolbox/compiler/rn/bqnyle1-1.html
> >>
> >> Using pause in Applications Generated by MATLAB Compiler Software
> >>
> >> In Release 14 on Windows, MATLAB Compiler generated applications that
> >> used the pause command would occasionally hang. This was more likely to
> >> happen if you called pause frequently or you used very small timeout
> >> values. This problem has been resolved.
> >>
> >> I believe this functionality has been around since Compiler Version 2.0
> >
> >
> > i'm using r2008b. but it doesnt work!! i'm using pause as a 'press any
> > key to continue' rather than pause(time). it doesnt work! instead f
> > pausing the screen just disapears instantaneously!
>
>
> Jveer,
>
> The following code:
>
> function tpause
> h=figure;
> plot(1:10);
> pause;
> close(h);
> end
>
> When compiled and deployed on a windows machine using R2008b and the LCC
> compiler and VS 8,
> pops up the figure and waits for me to press a key (with the dos window in
> focus). It then
> closes the figure and exits.
>
> Are you doing anything different?

i'm using pause to pause a frameless java window.

if mode==1,tic;while toc < time/1000;end,win.dispose()
elseif mode==2,pause,win.dispose()
end % mode of operation

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