How do I break a for loop (inside) and a while loop (outside) at the same time by a control button

I have a while loop (outside) and a for loop (inside) and a control button within the for loop.  I want to stop the program by click the botton without finishing the for loop.  How can I do that?
Thank you in advance.

HI Please find attached snapshot Regards, Santosh
Message Edited by SanRac on 12-17-2009 05:12 AM
Message Edited by SanRac on 12-17-2009 05:13 AM
Attachments:
Snap1.png ‏4 KB

Similar Messages

  • When in i-tunes 11 mac, how do i search for a song as well as a genre at the same time?

    when in i-tunes 11 mac, how do i search for a song as well as a genre at the same time?

    If you mean searching for a song that you already have in your Library, then you can select "Music" first. Then, go across horizontally to Genres and select that; then by using the drop-down menu found under "View" & (of course) select "View Options"-- you will be presented with a limited # of choices to sort by.
    My iTunes 11.0.5 shows 4 parameters to choose from: Title, Artist, Year and Rating. Then you can sort & finally...
    Enjoy,
    mm~

  • I was backing up my iPhone and importing photos onto iPhoto at the same time , then suddenly it says no more space available (i had 48GB before i do this and now i have 18GB) i can't find the back up or the photo anywhere , how can i delete them ?

    i was backing up my iPhone and importing photos onto iPhoto at the same time , then suddenly it says no more space available (i had 48GB before i do this and now i have 18GB) i can't find the back up or the photo anywhere , how can i delete them ? i dont need the pictures or the back ups , i want to delete them but they are not there

    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown asBackups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • How does one use Sound sticks while using HDMI at the same time ??

    How does one use Soundsticks while using HDMI at the same time ??

    Hi Caleb,
    This isn't a precise answer but a possible workable solution. SoundSource puts a menu extra which allows you to switch input/output and has an option for Auto-Switch to Headphones. The auto-switch feature doesn't work with USB headphones but I believe it will with 'regular' headphone plugs such as you use.
    http://www.rogueamoeba.com/freebies/
    (Oh, did I mention it's free Universal and works with Leopard?)

  • Hi, I've been using the 3D function in PS, upgraded to CC2104 and it was disabled (need more VRAM). I then reinstalled CS6 and was able to use it for a day and now, today, I am getting the same message I got with PS CC2014 saying my VRAM is too low again.

    Hi, I've been using the 3D function in PS, upgraded to CC2104 and it was disabled (need more VRAM). I then reinstalled CS6 and was able to use it for a day and now, today, I am getting the same message I got with PS CC2014 saying my VRAM is too low again. I'm in the middle of a project that needs to go live tomorrow. HELP!!! Please.

    Photoshop requires 512 Meg of VRAM or more to use the 3D features - that's been the same for version 14 (CC) and now 15 (CC 2014). Check Help->System Info to see how much your card says it has.

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

  • Can you use apple tv to play a movie on your tv (say for kids to watch) and use your mac book at the same time to browse the internet ???

    Using a mac book pro !
    Can you use apple tv to play a movie on your tv (say for kids to watch) and use your mac book at the same time to browse the internet ???

    Good question bigboggerchoot.  I also would like to know the answer to this.

  • I dont get sound for videos, games and music but ringtone still works. When i press volume buttons on side of phone i only get the picture of the nell and no little dots underneath. This is on my iphone 4s and ipad. It happened at the same time.

    I dont get sound for videos, games and music but ringtone still works. When i press volume buttons on side of phone i only get the picture of the nell and no little dots underneath. This is on my iphone 4s and ipad. It happened at the same time.

    Recurring theme with the 4s losing alerts except for the phone ringing.  Most complaints seem to center on the 7.1 upgrade.  The fix is dodgy, putting in a charger, playing a you tube video then pulling out the charger and wiggling it until you get the sound back.  When you get the sound back, the volume buttons start to work again.  Alternate solutions involve cleaning the docking port with a toothbrush, running a pick over the electrodes etc.

  • Phone and my husbands iphone ring at the same time when only one of us is being called. How can I stop this from happening?

    Both my iphone and my husbands iphone ring at the same time when only one of us is being called. How can I stop this from happening?

    This post has already been answered. Why are you plugging your own site with an answer that has already been given? Not to mention that the information you are handing out is incorrect. There is no bug, there is no patch, and no one needs to delete any email addresses. If you take the time to read the posts with the correct answers, you will see that the solution is totally different than the erroneous one you have posted.
    GB

  • How to play stereo mix music and sing in my mic at the same time?

    Hi guys, need help regarding Realtek HD audio driver
    I want to play stereo mix music and sing in my mic at the same time.... not for recording purposes but in chatroom let's say.
    I'm using XP...Toshiba Satellite S4747 laptop
    In the Realtek software under " Realtek HD audio input" I have mic and stereo mix both.... but I can only select one at a time.....
    Any solutions plzzz thxxxx
    On a different note.... a friend of mine whose using one non-Toshiba laptop with win XP has an older version of the Realtek audio driver and can select both mic and stereo mix at the same time... I downloaded that version into my laptop but I still can only select one at a time....

    Check the audio settings in Windows and dont forget in Realtek HD audio manager. You can find it in control panel.
    I think your microphone is set to mute so check this.

  • Yesterday, I downloaded I.O.S. 8 to both my iPhone and my wife's iPad at the same time.  She wants I.O.S. 8 removed.  How do I remove it from both devices?  I am willing to resort to my old IOS7.1.2.

    Yesterday, I downloaded I.O.S. 8 to both my iPhone and my wife's iPad at the same time.  She wants I.O.S. 8 removed.  How do I remove it from both devices?  I am willing to resort to my old IOS7.1.2.

    Sorry...downgrading is not supported.

  • HT204368 How do I connect more than one Bluetooth enabled music device (subwoofer and Jambox) to my iPad at the same time?

    How do I connect more than one Bluetooth enabled music player (subwoofer and Jambox) to my iPad at the same time?

    You could start by posting onto an iPod forum instead of a "Using iPad" forum.  

  • Are there any apps for having seperate volume controls for each app if multiple apps are playing at the same time?

    Are there any apps for having seperate volume controls for each app if multiple apps are playing at the same time?

    I don't think you can do that the volume is universal, but maybe turn down the volumes in the app settings?

  • How do i configure a FOR loop to have the behavior of the step Loop Type: Pass/Fail count?

    Hello,
    I'm using the Pass/Fail count set to one Pass to capture an event generated by my DUT.  I originally used a numerical compare step with the Looping type of Pass/Fail count to accomplish this.  Unfortunately the implementation changed and now I need to execute a few steps that can not be combined within one code module as before. Nor can these steps be put into a subroutine.  One of the steps executes a .NET asembly and I haven't figured out how to pass the reference to the subroutine.  When the subroutine is intered the reference is lost and the methode does not execute correctly.
    I have an evaluation function the exits the loop when the expected conditions are met. Everything works except for the Overall Pass/Fail result of the For loop.  If the loop exits due to the first numerical compare test passing, I want the loop overall execution to report as "Passed".  If the loop reaches it's predetermined number of iterations, the overall result needs to report as "Failed".  It would also be nice to have the radio button functionality of "Record Result of Each iteration".  Some conditions require a wait over a minute for the event to occur and I don't want to generate needless data for the report.
    Currently I get the pass/fail status for each For loop iteration, but only "Done" for each loop iteration.  I don't want the initial few failures to cause the test to fail.
    Does anyone know how to do this? Suggestions?
    Thanks,

    I have 2 steps in the loop that can not be combined into one step. This forces me to implement the behavior in some form of loop.  A While Loop could be an option.  I would need to pass the Step.Result.Status from the Multiple Numerical compaire step to the condition of the While Loop.  I tried to use the Step.TS.ID without success.  Some form of reference to the numerical compare step would be needed. I'm using a For Loop as I do want to limit the number of iterations of the loop.  In the case where the loop iterations are reached, the event I am trying to detect did not occur at the correct time and a failure needs to be reported.
    I came up with something based on my comments in the second post:
    1) To start with I configured a Locals.ForLoop_5 variable.  This is used to set the limit on the loop iterations and for comparison after the loop has finished executing. More on that later.
    2) The first step inside the loop invokes a method within a .NET assembly that has been packed in a DLL This method gets the required data from the DUT and stores it to a text file.
    3) The next step is the Multiple Numeric Limit step.  This step invokes a VI that extracts the data from the text file.  This step has been customized in several ways.
      i)  In Run Options, the Results Recording Option was disabled.  This prevents recording of "Failed" while the loop executes when waiting for the event to happen.
      ii) In Run Options, the Step Failure Causes Sequence Failure is unchecked.  Same reasoning as i)  These steps are not true failures.
      iii) A Post Action is configured to go to the nexxt step after the For Loop End step On Condition True with the logic of Step.Result.Status == "Passed".  This causes the loop to exit when the first "Passed" is encountered which corrolates with the event I'm trying to detect. On Conditon Fail remains set to default.
    4)  The step after the For Loop End is an expression step with everythin set to default except for the Status Expression logic set to: Locals.Loopindex < Locals.ForLoop_5 ? (Step.Result.Status = "Passed") : (Step.Result.Status = "Failed"). This step performs the overall Pass/Fail reporting for the For Loop.  If the number of loop iterations is less than the maximum it could have only gotten there by the previous logic triggered by the numerical compare passing, therefore "Passed".  If the loop index has reached the limit, then the event was not detected, therefore Failed.
    I have tested this work around with success, it just a pain to now have to implement this on my 40 some odd For Loops.
    If there is a better way, I'd still like to hear it.

  • Can 2 while loops work at the same time?

    I have two while loops in my program; one reads data and the other does nothing until I hit stop on the first one. I want the first one to always run and the second to run off of the time constraint I have for it when I hit the start button. I am using a DAQ and transfering data from one while loop to the other. See attached file.
    Main questions:
    How to attach the start button?
    How to get the second loop to work with the first?
    Thank you
    Solved!
    Go to Solution.
    Attachments:
    2whlloopprgrm.vi ‏299 KB

    Your problem is that the loops have a data dependency.  If you want to run both loops at the same time, they can't have any wires running from one to the other.  Look into the Producer/Consumer architecture.  It uses queues to send data from one loop to the other.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • External Monitor Not Working (Can't Hear Vocals)

    Hi all. I am about to tear my hair out with monitoring problems I have started experiencing with Adobe Audition. I want to use the External Monitor feature to monitor my vocals whilst recording a track (Don't like the latency of Audtion monitor).  Ho

  • How do i hook up ipod video to tv??

    how do i hook it up to the tv? is there some cable hookup i need to buy?? please help me.

  • Best way to implement ESS, Leave approval matrix.

    Hi Gurus, Please suggest me the best possible way to map the leave approval matrix for ESS. we had a plan to prepare our leave approval matrix based on "Position". Just wanna know Is it the right way to figure out the Leave approval matrix. Initially

  • Lightroom and other applications not showing in Adobe Application Manager

    I have just installed the Adobe Application Manager several applications aren't list, for example lightroom. I have read that it might be due to my system spec, however I doubt that. My system specs are as follows: OS: Windows 8 Pro CPU: Core i7-362Q

  • Passing values with href.

    I am creating a report region by selecting some fields from the table. I then made one particular field a hyper link and i want to have a pop up window (to select some criteria) when you click on the hyperlink. My pop up window display will be differ