ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

loop break hot-key

Dear Forum,

My collegues and I are new users of Labview and we were wondering if
there is a way to break an (accidently programmed) endless while loop.
The problem, in its simplest form, is a while loop with a dialog box
inside and the output of the dialog box tied to the while loop's loop
contidion box. I've played around with it a little, but the only way I
can find to break the loop is Ctrl-Alt-Del, which forces the closure of
Labview altogether.

Kind regards
Michelle Harmos


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 4
(4,753 Views)
Does the dialog box have two buttons? The cancel button yeilds a False
output, and if that's the only thing connected to your loop condition, it
should halt. If there are other conditions hooked up to your loop
condition, put a case statement after the dialog box output to control
them.

Rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 2 of 4
(4,753 Views)
If this happens in development hit Control-. (Control and the period
key). This will stop the program. You can also use this to stop a program
that has been coded to Exit LabVIEW when a Stop button is pressed and there
are no menus.

--Doug

mkh113@rsphysse.anu.edu.au wrote in message <7qng8v$l0j$1@nnrp1.deja.com>...
>Dear Forum,
>
>My collegues and I are new users of Labview and we were wondering if
>there is a way to break an (accidently programmed) endless while loop.
>The problem, in its simplest form, is a while loop with a dialog box
>inside and the output of the dialog box tied to the while loop's loop
>contidion box. I've played around with it a little, but the only way I
>can find to break the loop is Ctrl-Alt-Del, which forces the closure of
>Labview altogether.

>
>Kind regards
>Michelle Harmos
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
0 Kudos
Message 3 of 4
(4,753 Views)
Hi,
Try this: press + . (LabView shortcut to
stop a program) and maintain pressed. Answer the
dialog box with the mouse, the vi will perhaps
stop.
In some cases, you may answer many times the
dialog box before the vi stops.
I think that the VI must accept to be stopped by
the user (Vi Configuration menu: show stop button
or something)

Laurent.

In article <7qng8v$l0j$1@nnrp1.deja.com>,
mkh113@rsphysse.anu.edu.au wrote:
> Dear Forum,
>
> My collegues and I are new users of Labview and
we were wondering if
> there is a way to break an (accidently
programmed) endless while loop.
> The problem, in its simplest form, is a while
loop with a dialog box
> inside and the output of the dialog box tied to
the while loop's loop
> contidion box. I've played around with it a
li
ttle, but the only way I
> can find to break the loop is Ctrl-Alt-Del,
which forces the closure of
> Labview altogether.
>
> Kind regards
> Michelle Harmos
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>



Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 4 of 4
(4,746 Views)