How to stop  after first loop operation  over?

Hi friends.
How to stop  after first loop operation  over?
I have a loop operation in module pool program.
After first loop over I want to stop.
I used the STOP keyword, but it is going to dump.
Thanking you.
Regards,
Subash

Hey,
The statement STOP is forbidden in methods and, since release 6.10, leads to an uncatchable expection during the processing of screens called with CALL SCREEN...
As they said above, use a EXIT statement to fix this DUMP...
Regards,
Diogo Carvalho

Similar Messages

  • How to stop a while loop after certain time using Elapsed time vi

    how to stop a while loop after certain time using Elapsed time vi.

    Hi Frankie,
    Just place the Elapsed Time VI inside the WHILE loop, and wire the 'Time Has Elapsed' output to the conditional terminal in the lower right corner (which should be set to 'stop if true' by default).
    In the future, please post your LabVIEW questions to the LabVIEW Forum.  You have a much better chance of getting your questions answered sooner, and those answers can then help others who are searching the LabVIEW forums.  Thanks!
    Justin M
    National Instruments

  • How to stop a while loop in LabVIEW from a C program

    How to stop  a while loop in LabVIEW from a C code

    hi
    I think by creating dll you can stop the while loop from your C program.For that you just create dll (Dynamic Link Library) for the VI which has that while loop.
         Anyway can u please explain ur requirement clearly.

  • How to stop a while loop of event structure from a main vi

    Hello;
    sorry for my english
    I have to stop a subvi from my main vi, the subvi contains a while loop and an event structure so I need to stop this loop while directly from my main vi I have tried global variable but it did not work
    any help please or example !!!   
    Solved!
    Go to Solution.
    Attachments:
    stop a while loop and event structure from main vi.png ‏16 KB

    IYED wrote:
    Hello;
    sorry for my english
    I have to stop a subvi from my main vi, the subvi contains a while loop and an event structure so I need to stop this loop while directly from my main vi I have tried global variable but it did not work
    any help please or example !!!   
    If this is an example of how your code looks, I'd clean it up before the developer who has to work on it next hits you over the head with his LabVIEW Style Book. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Why Does Movie Stops After First Clip?

    I created an iMovie from about 20 clips but once saved the movie stops after the first clip. How do I get it to run full length without having to insert Transitions?

    BlueMovie,
    It sounds like you only have the first clip selected (highlighted in blue).
    Click somewhere above the timeline so that no clips are selected. Now your movie should play in its entirety.
    Matt

  • 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

  • How to stop a while loop which contains a timed loop

    Hi,
    I'm a new hand to labview, and I'm using labviw 7.1, NOT 8.x.  I'm trying to do a measurement, in which the flow would look like the attached file (I have stipped all hardware related components to make it easy to read).  My questions are:
    1. In Loop 3, when the comparison (x>20.85) is true, Loop1, Loop2 and Loop3 are stopped, why it won't quit the while loop (I have wired it to  while loop stop)?
    2. When it is running, I click on stop button, why it won't stop?
    Thanks!
    Attachments:
    SyncTimedLoop32.vi ‏228 KB

    hwm wrote:
    2. When it is running, I click on stop button, why it won't stop?
    The stop button is read outside of the inner while loops.  So the inner while loops will continue to run until their stop conditions are met.
    hwm wrote:
    1. In Loop 3, when the comparison (x>20.85) is true, Loop1, Loop2 and Loop3 are stopped, why it won't quit the while loop (I have wired it to  while loop stop)?
    It seemed to me like it would, but sometimes it seemed like I had to set change the numeric value one more time before it would.  You have a very odd structure there by placing the event structre inside the while loop with the other loops.  I think you may be running into issues where events are getting queued up in the event structure, or race conditions between when the event structure might execute relative to the other loops.  It is all very odd and difficult to predict all the ways these structures might interact and relative timing.  Usually event structures would belong in their own parallel while loop.  I think you need to rethink exactly what you are trying to do here.  It probably isn't event necessary to use the stop timed structure functions.  A local variable or a notified to pass the "Stop status" from loop 3 to the other loops (or the separate event structure loop to the other 3) would probably be better.

  • In New iTunes how do I play a whole album - stops after first song

    In iTunes 11.0.1 (12) I select Music in upper left of window, select Albums, click on an album, click on > to play and get the first song and then it stops.

    Make sure Preferences, General, View (Edit > Preferences on PC) "Show list checkboxes" isunchecked.
    Albums will then play normally then by just clicking them in Songs or Albums views.

  • Java regex stop after first occurrence

    When using code like the following:
    while (matcher.find()) {
    string1=matcher.group(1).trim();
    System.out.println(charset);
    the program goes on looking all through the input string and prints out the final match.
    What should be done to find the first occurrence and to stop searching through the input string after the first match has been found? i.e. I want to exit the while loop after the first match is found.

    The first .* in your regex matches as much as it can at first, and becuase you used the DOTALL flag, it's able to gobble up the whole remaining string. Then it starts backtracking, trying to match the rest of the regex, and it has to backtrack almost all the way to beginning of the string again before it gets back to the META tag where it's supposed to match (unless it finds a false match elsewhere first). That's just an example of greedy quantifiers at work; by calling it a loop you sent us all barking up the wrong scent trail.
    Making that dot-star reluctant is not the solution though; the regex would then match everything from the first occurrence of "<meta" to the first occurrence of "charset", where "charset" could be in a separate META tag or just hanging loose later in the string. Getting rid of the DOTALL flag might restrict the match to just one META tag, but you can't count on that. Try this: REGEX = "<meta\\s[^<>]*?charset=([^\\s\"]+)";
    pattern = Pattern.compile(REGEX, Pattern.CASE_INSENSITIVE); // the only flag you need{code} Also, if you aren't familiar with this website, you'll probably find it useful:
    http://www.regular-expressions.info/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • MDT 2013 Windows 8.1 Task sequence Stops After first Reboot. login

    Hi There,
    The issue I am having is that After the OS gets laid down, and the Windows 8.1 computer reboots, The task sequence does not continue. It fails everytime. There are not any obvious errors that happen in the process that I can see in the logs. But I have
    customized this process quite a bit and I could use some help. We are deploying potentionally to over 30,000 computers.
    The test machine I have been using is the Surface pro 2.
    The interesting part is after a failure is if I start the process over again ,  boots into PE, then run diskpart manually from command prompt to Clean Disk 0, and then reboot and start the MDT task sequence, it will deploy fine.
    I also have a custom step that copies the TS media from the stick to a Recovery partition I create. The user can launch a -re-image or MDT refresh from an Icon/script, which will unhide this "recovery partition", and kick off a lite touch refresh.
    This works succesfully everytime. We have remote locations with very slow links, so MDT over the network or MDT integrated with SCCM is not an option at this time. So this is the solution.
    I am attempting to use MDT 2013 to deploy Windows 8.1 Offline, and using GPT partitions.
    I am using a custom Format and partiition Step, that call the CustomDiskpart.txt script from %deployroot%\Scripts.
    I am also using a Split image, as multi partitioned EFI/NTFS USB sticks are not a possibility for us , also, the USB sticks capable of this are seen by MDT as a "fixed drive" anyways. Which can cause issues in itself. So the LTIAPPLY.wsf has
    been edited to search and apply ther split .swm files.  This works well.
    After the Task sequence failure I have tried launching the Litetouch scripts from the C:\MINNINT folder manually to continue the sequence, but it doesnt  do anything.
    I don't want to always be running Diskpart manually before imaging a new OEM computer. I needa second pair of eyes on this.
    Thank You in advance!

    Hi,
    Thanks Again for taking a look.
    I checked the sysprep log in the image and they look fine. No errors.
    As requested here are some logs. Let me know if I can provide anything else.
    BDD.log
    litetouch.log
    SMSTS.log
    Im not actually attempting to provide a recovery image. What I am doing is leveraging MDT to refresh the computer remotely. We can update the MDT media on the hidden data partition,when required and kick it off remotely. Some of the computers are very
    remote, and without SCCM DP's, plus a combination of slow links and a lack of deskside techs made this a requirement. This works without incident.
    The only issue I have is on a new computer if I run the sequence (offline USB media) it will fail the first time, unless I run a diskpart clean in PE first.. Then it will succeed. Refreshing the computer is fine.

  • How to stop a while loop when using tab control

    How do you use a tab contol to stop what is happening on one tab when you switch to another tab?  In the test example I attached, I have a while loop nested inside a case structure controlled by the tab control.  When I tab to page two the elapsed timer starts but when I switch to another tab it does not stop.  I can't come up with an easy way to stop or exit the while loop when I change tabs. 
    Thank you
    Danny
    Attachments:
    tab control.vi ‏24 KB

    I played with it a little more and came up with this fix.  This fixes it but is not tied to the changing tabs as I was looking for.  Is this just too many nested loops and a bad idea?
    Danny
    Attachments:
    tab control fix maybe.vi ‏26 KB

  • How to stop a while loop with long delay

    Hi everyone,
    I am building a simple program for turning on and off a single Bit.  The task is to turn ON the Bit for a period length T1, and OFF the Bit for a period length T2. T1 is normally different from T2, and can be controlled  by users. 
    Since T1 and T2 can be variable, they sometimes can be very long.
    If I use a Wait function inside a While loop, it needs long delay to be able to Stop the Main program.
    The same situation happens when I use Timed loop.
    Can anyone suggest me how to do this task?
    Thanks a lot. 
    Message Edited by tatuan on 04-12-2010 12:56 AM

    Here's another possibility using OpenG Wait ms:
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How To Stop After Effects From Knocking Out My Internet Connection As It Is Downloading?

    Greetings,
    Yesterday, January 20, 2015, I purchased an annual subscription to After Effects.  And, after numerous attempts at downloading the software with the same abysmal results, I am now going to the forums for a possible remedy.  Everything goes well in beginning my download, including getting my McAfee Anti-virus program to accept Adobe Creative Cloud, however after a few minutes, the download process knocks out my Internet connection, forcing me to re-boot.  I do receive two back-to-back error messages; none of which are listed by Adobe set of error messages in their FAQ section.
    The first one reads:  "Core: Creative Cloud - Application Error.  The instruction at 0x100014a0 referenced memory at 0x100014a0.  The memory could not be written."  The second error message is likened to the first, only with a different number...
    "94% Complete: explorer.exe - Application Error.  The instruction at 0x80001610 referenced memory at 0x80001610.  The memory could not be written."
    Finally, do you know if I can bypass all of this trouble by having Adobe After Effects disks shipped to me?  Any assistance will be greatly appreciated.
    Joy in the Lord,
    A. Landis Jones

    Greetings,
    And thank you both, Mylenium & Dave.  After I compose this note, I am going to mark your answers as correct.  I just wanted to write this qualifier, first.  I tried to do as both of you suggested, however, I could not figure out how to disable McAfee Anti-Virus.  I did manage to turn off McAfee Firewall.  And when that was done, I tried to download After Effects.  However, that trick did not work the first couple of times I tried it.  A few re-boots later, After Effects (as well as some unknown program I did not expect called Media Encoder) finally downloaded on my computer.
    After I began this thread, I recalled that, oftentimes, when I view YouTube videos online, the same thing happens - my Internet connection gets disrupted.  Then I remembered that the trouble began when my computer crashed and I tried to re-install Windows 8.1 Pro.  So, maybe that is the real culprit - my system crash, that is.  A little while ago, I tested viewing YouTube videos to no avail.  So, I am suspecting that your solution to turn off my anti-virus (in my case, my firewall) did the trick, and I thank you two, Mylenium & Dave, mightily.
    May you have many blessings.
    Joy in the Lord,
    A. Landis Jones

  • Mac OS 10.4 Install Stops After First Disc

    I'm trying to do a fresh install of mac os 10.4 on my mac mini g4. I restarted the computer with Disc 1 and booted up while holding C. I went under options and chose to do a fresh install. After it checked disc 1 the install began. After it finished with disc 1, it restarted and then it gave me the message, "Please insert the 'Mac OS X Install Disc 2' disc to continue installation. (You have chosen to install software that requires this disc)."
    This is where the problem is, I insert Disc 2 and after about 10 seconds, it spits it back out. Nothing on the screen changes.
    I've tried restarting it, inserting disc 1 again, restarting the installation process, and restarting while holding C with disc 2 in. None have gotten me past that message.
    The discs I am using are the ones that came with the Mac Mini (two gray discs).
    Any help would be greatly appreciated!

    Hi there, That second Disk thing happens frequently, the best way around it is to do a Custom install, and eliminate enough Printer Drivers, Languages, Fonts, and Applications you don't need... then it may skip #2 altogether.
    http://support.apple.com/kb/HT1442
    So start over,

  • 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.

Maybe you are looking for

  • Regarding  Dimension Table and Fact table

    Hello, I am having basic doubts regarding the star schema. Let me explain first regarding  star schema. Fact table containes Key fiigures and Dim IDs,Ok, These DIm ids will be connected to my dimension tables.The Dimension table contains Charactersti

  • Entourage crashing FCP?

    Has anyone else reached the conclusion that running Entourage in the background while using FCP Log and Capture results in a couple kinds of crashes? In one case, capture stops and I get an error report saying the deck or tape has a problem, sometime

  • Lightroom will now allow EDIT in photoshop CC or CS6

    From lightroom the EDIT functions are graded out and can not Edit in either photoshop or CC Can import photos directly to CS6 or Photoshop CC but not from Lightroom Have version 5.6 lIghtroom and 2014 2.1

  • Delivery rating in vendor evaluation

    Can I know on what logic system calculates the delivery rating, for schedule agreement which has more than one schedule lines. Regards, M.M

  • Version control practices

    I looking for information on how others employ version control on all the various portal resources. Versioning custom development around remote services and the like is easily handled through the IDE or normal version control practices. What I am won