How do I stop an infinite loop because of a poorly placed user prompt during developmen​t without closing LabView?

How do I stop an infinite loop because of a poorly placed user prompt during development without closing LabView?
Thank you!
Solved!
Go to Solution.

chuck72352 wrote:
Here is an example of a VI that I can't stop.
Epic Fail
but seriously, as was suggested, download Darren's Abort.vi. It comes in very handy for these.
Message Edited by Broken Arrow on 05-03-2010 01:06 PM
Richard

Similar Messages

  • How do I stop mail from looping the same emails into inbox?

    How do I stop mail from looping the same emails into the inbox over and over again? It does the same thing with deleted messages that keep showing up again and again in multiples even after deleting them. I have made sure my server settings in all email accounts are set to delete immediately once I delete them on my MacBook Pro/IPhone. This issue has severely compromised the efficiency of Mail on my MacBook. Thanks for any help you're able to give me.

    I have tried that but it does not fix the problem.
    The "card" group is not a previous recipient.
    Although not available for editing in Contacts, it is a valid group showing up in the "To" field of Messages, Mail, or any app using the AddressBook.
    Its associated file is automatically created in:
    ~/Library/ApplicationSupport/AddressBook/Sources/<hexaFolder>/MetaData/<hexa>ABG roup.abcdg
    This is why it also shows up in the Spotlight results...
    If I manually remove this file, it gets recreated...
    If I turn off the syncing through iCloud, the entry gets deleted. If I turn it up, it comes back!

  • How do i stop a while loop

    I'm new to labview and I'm having a problem stopping a while loop (running windows XP/2000 with the student edition of labview express 7).
    I'm doing a data acquisition program where I'm constantly reading in voltage and comparing it to a set point value, when the input voltage goes above the set point, i want the while loop to stop. How do I do this? I already have an LED going on when the criteria is met, but I'm not sure how to actually stop the loop (i.e. change the iteration value from true to false-i guess). If anyone can please assist me with this I would very much appreciate it.
    I've included my program too.
    Attachments:
    CO_Detection_Monitoring_System_Modified.vi ‏60 KB

    Hello Everyone-
    I've just posted a message about stopping a while loop and it was answered accurately and quickly- thanks to LV_Pro and PauloM- thanks much- its nice too see that there are many helpful people out there! Unfortunately, I have 2 more questions to ask of the forum.
    My application is almost completed- I just need to add an elapsed time counter that will tell me how long it took for my LED to trigger (from my set point-i.e. when from 0:00:00 until when my loop stopped).
    Now I've found a perfect elapsed time counter on the NI web site contributed from Mike Hall from Ohmeda Medical- the page is here.... http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=D37E2493DC333076E034080020E74861&p_node=DZ52032&p_source=external
    So my first question is, it looks like I can just extend the while loop box in my 'CO detector... .vi' and paste just the code from the 'elapsed time.vi' while loop into my loop and I will be set- but do I need to change my wait until next multiple to be a 1000 too in my program? Probably, but I'm not sure hence the question- or other ideas would appreciated.
    My second question is now that my application is complete (after I add the elapsed time above), I need to exactly duplicate this process for 7 other DAQ inputs (i.e. right now I'm using only 1 of 8 analog inputs on the FP-AI110). So should I make my 'CO detector.. .vi' a separate program (I remember reading something about this in one of the posts earlier).
    Any help is very appreciated.
    Thank you again,
    Daniel
    Attachments:
    CO_Detection_Monitoring_System_Modified.vi ‏60 KB

  • HELP. How do i stop a video looping in a button?

    Please can anyone help me, i'm losing my mind trying to solve this seemingly very simple problem. I have a very low quality video that i don't want to play in full screen mode. So i have created a track with a button where i have dropped the movie. Everything is fine as it plays in this little button i've created - BUT it will only play for about 15 seconds before it loops back to the start again. How do i stop this loop and play the whole film clip?

    start loop end in the inspector

  • How can I stop iTunes from trying to start in another open user account?

    When I run iTunes, it often tries to open in another open User account, causing distracting Windows warning tones.  How can I stop it from trying to automatically open in the other account?

    Close iTunes before switching profiles or disable fast user switching.
    tt2

  • How to Stop an infinite loop

    I'm reading from the keyboard. I take the input and use it as a while statement's condition. However, I can't break out of the loop once i'm in it. I've tried everything, but nothing works. The loop should terminate after null is returned, but it doesn't. Here is my code:
    inputline = keyboard.readLine();//read the keyboard
    while( inputline = keyboard.readLine() )!= null){
    inputline = keyboard.readLine();//read the keyboard
    System.out.println(" i'm in the loop");
    DiskOut.println( inputline );
    DiskOut.flush();
    inputline = keyboard.readLine();//read the keyboard again
    }//end while
    Also, I have tried this while statement
    while( inputline =="\n" || inputline == "\r" || inputline == null)
    please help!!

    Your code won't even compile. The part between "while" and "{"
    has too many right-parentheses.
    What are "keyboard", "DiskOut", etc.? You'll probably need to provide
    more details, plus the actual code you're trying to debug, before anybody can help you.
    Assuming "inputline" is a String, then that alternative while expression wouldn't work anyway. You can't compare Strings with "==" (at least not in the way you probably mean).
    The following code does something which seems to be roughly what you want:
    import java.io.*;
    public class Foo {
      public static void main(String[] argv) {
        try {
          BufferedReader foo = new BufferedReader(new InputStreamReader(System.in));
          String line;
          while((line = foo.readLine()) != null) {
            doSomething(line);
        } catch (IOException e) {
          e.printStackTrace();
      public static void doSomething(String it) {
        // do something here
    }But note that the while loop doesn't end when someone inputs a blank line; it ends when the stream ends, which in this case is when someone inputs EOT (in unix systems, Control-D).
    readLine() doesn't return null on blank lines.
    If that's what you're looking for, then maybe you want to end your while loop when inputline.length() == 0.

  • How can I stop a timed loop in the middle of its cycle?

    Hello all,
    I'm creating VI that will gather data from a series of thermocouples and outputing that data to a graph as well as to a spreadsheet file.
    The sampling rate for each channel needs to be independent and variable. That is, they want to increase the sampling rate to 1/sec during temperature transitions, and then 1/10minutes (for example) when saturated.
    I was going to use a menu ring for the user to select the sampling rate (1 second to 15 minutes, with 7 different rates in between) and then, using a case statement, select the value of how long the 'wait (ms)' should wait in each loop.
    This kind of works with one major problem. If the user currently has the sampling rate set to 15 minutes, th
    en wants to switch it to 1 second, it can take up to 14:59 for the 'wait(ms)' to finish waiting on the 15 minute wait before it switches to the faster sampling rate.
    Is there a way to stop a 'wait(ms)' in the middle of its wait cycle? Or is there a better way of doing this?
    Thanks in advance for your help.
    Dave Neumann
    [email protected]

    "Neumannium" wrote in message
    news:[email protected]..
    > Hello all,
    >
    > I'm creating VI that will gather data from a series of thermocouples
    > and outputing that data to a graph as well as to a spreadsheet file.
    >
    > The sampling rate for each channel needs to be independent and
    > variable. That is, they want to increase the sampling rate to 1/sec
    > during temperature transitions, and then 1/10minutes (for example)
    > when saturated.
    >
    > I was going to use a menu ring for the user to select the sampling
    > rate (1 second to 15 minutes, with 7 different rates in between) and
    > then, using a case statement, select the value of how long the 'wait
    > (ms)' should wait in each loop.
    >
    > This kind of works with one maj
    or problem. If the user currently has
    > the sampling rate set to 15 minutes, then wants to switch it to 1
    > second, it can take up to 14:59 for the 'wait(ms)' to finish waiting
    > on the 15 minute wait before it switches to the faster sampling rate.
    >
    > Is there a way to stop a 'wait(ms)' in the middle of its wait cycle?
    > Or is there a better way of doing this?
    Instead of using the wait ms.vi you could use 'tick count' at the beginning
    of the loop and then have an inner loop that keeps checking the 'tick count'
    until time minus time > time to wait.
    You will need to figure out how to handle the case where the millisecond
    timer wraps from 2^32-1 to zero. That should not be too difficult.

  • Stopping a infinite loop

    I'm trying to write to a file by using a while loop. I read from the keyboard and then enter the while loop. I print to the file and then I read from the keyboard again. My problem is when I want to exit the loop by entering nothing I can't. The loop becomes infinite. Please help!!! Here is my code!!
    inputline = keyboard.readLine();//read the keyboard
    while ( inputline != null ){
    DiskOut.println( inputline );
    DiskOut.flush();
    inputline = keyboard.readLine();//read the keyboard again
    }//end while

    They're right...look at the following
    public static void doIt5() throws IOException
       BufferedReader stdIn = new BufferedReader(
          new InputStreamReader(System.in) );
       System.out.println( "type stuff...Press only ENTER to quit" );
       String input;
       //                1                    2           3
       while ( (input = stdIn.readLine()).equals("") == false )
          // do your thing...
          System.out.println( "echo: " + input );
          1 ---> assigning input from command line
          2 ---> comparing it to an empty string (if you just press ENTER, it
                 will be empty)
          3 ---> however, if something was typed, "input" would be non-empty
       // Same thing with a for loop...
       //              1                       2 & 3                1
       for ( input = stdIn.readLine(); !input.equals(""); input = stdIn.readLine() )
          // do your thing...
          System.out.println( "echo: " + input );

  • How do I stop GarageBand '11 Loops from downloading after I first download GarageBand?

    I have just downloaded GarageBand from the Mac App Store, and want to use it to create ringtones from existing tracks in iTunes.  That part is not a problem.  The problem I am having is that when I open GarageBand, it wants to download 1.2GB of loops.  I am on a slow internet connection (has been throttled by ISP as we have not exceeded a poor download limit), and do not have the time to wait for it to download before I can use GarageBand.
    How can I avoid the download in order to edit existing tracks?
    How can I force GarageBand to run without having loops installed?

    Hi,
    I have the some question; my Internet connection is very slow and I would like to download the Apple loops package (1,2gb) on my friend's computer and than install on my Mac.
    Is it possible to know the direct link to download the loops package?
    Thank you

  • How can I stop Firefox hanging continuously because of unresponsive scripts?

    This has been happening for months, on previous & current installations.
    I have tried every remedy from Firefox's Troubleshooting pages to no avail.
    I have tried remedies from other forums (which often give totally opposing advice to that on the Firefox ones!), also to no avail.
    The issue happens when I am visiting any site that streams videos (BBC iPlayer, 4OD, ITV Player, etc) and in Facebook.
    It hangs for at least 5 minutes before the "Warning: Unresponsive Script" message appears, & even when I click "stop script" it continues to hang & freezes the whole computer.
    I have updated all my plugins, tried Firefox both with & without add ons installed.
    I have tried "Yes Script" as advised by the Firefox Troubleshooter, but with that installed the pages won't load at all.
    This is driving me nuts, it happens all the time. Using Facebook is nigh on impossible - it takes 20 mins to write a sentence!

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How do I stop getting update notifications as a beta test Firefox user. I don't wish to be on this list anymore.

    I have been getting notifications of a new release of Firefox. I think I've been on the beta test user list and I don't want to be on that list anymore. I'm not active enough to be of any use to you folks. Thanks for a great product.

    You likely installed what was a one of the Beta builds of a version at time and then been on Beta channel ever since.
    A easy way to get back to Release channel is to install Firefox 34 from https://www.mozilla.org/firefox/all/
    Firefox 35.0 is on the Beta channel as there has been six builds so far with nine being the average.

  • How can I work on a Logic Project in Logic9 with a user who is running LogicX without just trading stems?

    I am running logic9 and don't want to upgrade to X yet, but my writing partner is using LogicX and we haven't been able to figure out how to open Projects and share between us on DropBox.  All we can do is pass audio files back and forth. Any thoughts?

    Just another thought..... according to this
    http://support.apple.com/kb/HT5794
    "When you open an older project in Logic Pro X it does not change the original project in any way. Instead, a new copy in the Logic Pro X project format is created which leaves the original project in place. You can continue to work with the original project in the version of Logic it was last saved in if you want." 
    Does this mean the 9 project will open with the changes made in X, if it's just adding audio files to the arrange?

  • Stopping a Thread in Infinite Loop

    I've read several articles on how to stop Threads, and all of them point to using Thread.interrupt(). The problem right now is what happens when the thread is in an infinite loop. For example:
    class A implements Runnable
        public void run()
            while(!Thread.currentThread().isInterrupted())
                  while(true);
    //in other class's main method:
    Thread a = new Thread(new A());
    a.start();
    a.interrupt();The a.interrupt() call only sets the isInterrupted flag in Thread, but it does not terminate the thread as a.stop() would. However, stop() throws a ThreadDeath exception that I would not want to have to deal with. Is there any way to stop this infinite loop thread safely?
    Thanks in advance!

    No need to get snitty. You certainly did not make clear that you are not a newbie at programming. Plenty of newbies who barely have a grasp of the language fundamentals post thread questions here. I thought I did address the question at hand. It seems I misunderstood what you were asking.
    The only way to safely stop that inner loop is like so: while (...) {
       while (!done) {
    }where done is volatile, or all access to it is sychronized on the same lock (meaning you'd sync the !done check above as well).
    If you can't do that, and it's stuck at while (true) and you can't modify the body of the inner loop to check done, then you're SOL.
    (I suppose it's conceivable that 1.6 or 6.0 or whatever it's called will introduce some new safe way to stop that thread, but I haven't heard anything about it.)

  • How to stop a "for" loop

    Hello,
    Do you know how I can stop a for loop ? because when I click on the stop switch on my front panel, the VI don't stop and continue to run the loop.
    Peter.
    Labview 2010
    Solved!
    Go to Solution.

    Peter,
    It sounds like you need a while loop, not a for loop. A button or switch does not traditionally control iterations of execution for a for loop.
    Please post your code so we may help better.
    -Chazzmd

  • Infinite loop in internet explorer after setting a doctype

    Hy,
    I have a problem with doctype, the internet explorer 6 - 8,  iframes and javascript. If I set the doctype to transitinal loose.dtd some of the Web Dynpro Applicatons which where included to my HTML page in form of iframes, produce javascript errors (looks like an infinite loop) so that every tested internet explorer crashes.
    Firefox has no problems and IE has no problems if:
    - I doesn't set any doctype (quirks mode)
    - or set a docype and open my iViews in a seperate Window
    I have no idea to solve this problem. I have to set a doctype. The cause of the problem lies in include iframes in the page and in the exclusive IE javascript file: sapUrMapi_ie6.js, where in the codelines 2643 - 2646 is an infinite loop because of some errors.
    What are the reasons for this javascript errors? How can I solve my problems?
    Thank you for every tip. Buy

    Hi Saeed.
    Thanks for your reply. As it turns out, the problem was how I was accessing the server, which was blocking display of some windows. I was using an IP address and once I used the name of the server instead, the access became a more approved level and I could access all the windows. Just FYI in case anyone else runs into this!
    Thanks!

Maybe you are looking for

  • How to write a simple bash command

    I have a mac mini that has some software that is supposed to start at bootup, but does not always do so.  In order to get the software running I need to open a terminal window and type some commands.  Is it possible to just write a text file and turn

  • Adobe Premiere Pro CC (2010) crashes when adding video on MacBook Air 2013 model running Windows 7

    I updated PP to the 2014 version and every time I try to add video it crashes.  It also crashes right away if viewing the media browser in thumbnail view.  If media browser is in list view you can attempt to drag and drop video and then it crashes. 

  • Hierarchy with time-dependent structure

    Hello, collegues, Im attempting to build a report on payrolll data using DS 0HR_PY_1_CE. There is a time-dependent structure hierarchy which changes very often (new departments are created\dispatched) on 0ORGUNIT. The data granularity in infoprovider

  • Burning music from Itunes on to blank disc

    I am attempting to burn a folder in Itunes to a blank disc but it will not allow me as the music in Itunes needs to be in MP3 format to burn. How do I resolve this issue? Thanks

  • Excise invoice values are fulshed off

    Dear All, I am making excise invoice for Export. I have different series group for export and domestic. When I make a excise invoice from billing document for export which has different billing document type than domestic, the excise duty ( 14%, 2% a