Resetting a for loop counter and restarting the computation

I have a while loop nested inside a for loop to do a calculation of a model. 
Lets say I am on the for loop counter 4. Suppose I wanted to keep track of the number of iterations on one the while loop, and if it exceeded a certain number say 100, exit the while loop.  I am doing this to avoid my model calculation being stuck at a spot due to optimization issues. I now want to restart the calculations of for loop counter 4. 
Is there a way to do this in labview? 
Solved!
Go to Solution.

Well first of all, if you are going to restart the loop with the same program inside it after it got stuck is it not just going to get stuck again creating a permanent loop in the code? Would you not just want to move on and have some sort of identifier that one of the for-loops got stuck?
But I would recommend simply nesting your while-loop inside of another while loop, then connect the exit for the out while-loop to some variable from the inner while-loop, so if the optimization did not occur properly then it simply repeats the inner while-loop.
Although I stick by my thoughts that you will just end up in a permanent loop if the optimization fails the first time.

Similar Messages

  • Often for no apparent reason the computer crashes and nobody available to any command (keyboard or mouse), the images disappear. I am forced to shut down and restart the computer.

    often for no apparent reason the computer crashes and nobody available to any command (keyboard or mouse), the images disappear. I am forced to shut down and restart the computer.

    open console in Applications>Utilities, check the system log for the date/time of the last problem for clues.

  • HT3728 how do i reset up my macbook username and password the computer has been cleaned out and reset to original factory settings

    I just had my macbook pro cleaned out and restored to it's original facory settings. i cannot access set up assistant to configure my username and password for the computer. it does not recognize my old username and password and I can't find where to enter this information.

    Unless you erased the drive then reinstalled Mavericks you will not see the Setup Assistant to configure your initial admin account. I have no idea just what you did. But to reset to factory state means you had to first install the version of OS X that came with the computer on the gray labeled DVDs. For your model that would have been a version of Leopard. If you have a Snow Leopard DVD then you can use that instead. The process is:
    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. Be sure you configure your initial admin account with the exact same
             username and password that you used on your old drive. After you finish Setup
             Assistant will complete the installation after which you will be running a fresh
             install of OS X.  You can now begin the update process by opening Software
             Update and installing all recommended updates to bring your installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Once you have 10.6.8 running you can enter the App Store with your Apple ID and re-download Mavericks to upgrade to 10.9.2.

  • Yesterday i sync music to my ipod touch from iTunesn but nothing showed up in the 'recently added' folder. now today neither my computer or iTunes is recognizing the ipod. I uninstalled iTunes and reinstalled it and restart the computer

    Yesterday i synced my music to my ipod touch from iTunes. the musice went on but nothing showed up on the ipod in the 'recently added' folder. now today i went to connect it to the laptop and neither my computer or iTunes recognized the ipod. 1st a message showed up saying an ipod was detected but cuddn't be identified so reconnect and when i did nothing showed up again. i have uninstalled and reinstalled iTunes and restarted the computer a number of times but the ipod still wont show up. Can anybody help?

    Here:
    iOS: Device not recognized in iTunes for Windows
    or
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X
    Does the iPod charge?
    Have you tried another cable?
    Another computer to help determine if you have an iPod or computer problem?

  • I want to install xp on my MacBook Pro with i5 processor, but that creates the partition and restart the computer just stays in the following message: The Setup is inspecting your hardware configuration of your computer, someone can help me with this ?

    I want to install xp on my MacBook Pro with i5 processor, but that creates the partition and restart the computer just stays in the following message: The Setup is inspecting your hardware configuration of your computer, someone can help me with this ?

    The answer has not changed since your last post here https://discussions.apple.com/thread/3230576?tstart=0
    There are no XP or Vista drivers for the new Apple computer hardware. Apple stopped XP and Vista support. http://support.apple.com/kb/HT4410.

  • Why does the App store say 'download' to OSX Mavericks when i have already downloaded the update, and restarted the computer? I can't find Mavericks icon on the dashboard or launchpad either! Help!

    Why does the App store say 'download' to OSX Mavericks when i have already downloaded the update, and restarted the computer?
    I can't find Mavericks icon on the dashboard or launchpad either! Help!

    It sounds like you've installed Mavericks.  You can confirm this by clicking on the Apple located at the top left of the screen and choosing "About This Mac" from the menu.  You should see a window appear with the text "Version 10.9.1" near the middle.
    If it says "Version 10.9.1", then you've installed Mavericks.  It still says "Download" in the App Store because you can still download the operating system after installing it.  This is useful if you want to download it for a friend, or create a USB boot drive.
    Morgan

  • Video no longer plays from sites on comedy central.  Site says browser must be updated, but I have installed all updates and restarted the computer..twice.

    Video no longer plays from sites on comedy central.  Site says browser must be updated, but I have installed all updates and restarted the computer..twice.

    If it is any consolation this started happening to me today. I am in Toronto. I am wondering if there is a copyright issue here. I have done nothing to solve it - mostly because I suspect this has nothing to do with my computer.
    p.s. My speculation about copyright is not correct. Comedy Central plays fine with Google Chrome. Have not yet tested Firefox.

  • I have a MacPro with 10.7.2 installed. I want to create a new partition and install 10.5. When I put in the install DVD and restart the computer, it does not restart. What can I do?

    I just purchased a  MacPro with 10.7.2 installed. I want to install 10.5 on a separate partition.
    I created the partition with no issues, now when I put in the 10.5 install DVD and restart the computer, it does not restart.
    All I get is a grey screen. no icons, no nothing. I have to shut the computer down.
    I really need to do this. I plan on upgrading to FCP X, but I still need to finish some old projects that were done with FCP 7. I need the different boot drives

    Mac Pro - Mid 2010
    Processor  2 x 2.66 GHz 6-Core Intel Xeon
    Memory  8 GB 1333 MHz DDR3 ECC
    Graphics  ATI Radeon HD 5870 1024 MB
    Software  Mac OS X Lion 10.7.2 (11C74)
    This is a brand new machine that I just purchased from Apple. It was delivered yesterday
    The old computer is an old PowerMac G5, but my OS X install disc is a retail version of 10.5.
    I also tried the OS X 10.5 install disc that came with my MacBook Pro (2.6 Ghz Intel Core 2 Dual).
    Same issue - nothing but a grey screen when the system tries to boot from the DVD

  • On Maverick my i cloud will not change the verification phone number even though I have change the phone number in apple and on contacts and restarted the computer. Help? I can't get the code necessary to fix the keychain.

    On Maverick my i cloud will not change the verification phone number even though I have change the phone number in apple and on contacts and restarted the computer. Help? I can't get the code necessary to fix the keychain without it.

    You can change the phone number the verification code is sent to from a device or Mac that has your iCloud keychain enabled as follows:
    In iOS 8, tap Settings > iCloud > Keychain > Advanced. In iOS 7, tap Settings > iCloud > Account > Keychain. Make sure the phone number under Verification Number is correct. If not, enter another phone number.
    In OS X Mavericks v10.9, choose Apple () > System Preferences. Click iCloud, then click Account Details. Make sure the phone number under Verification number is correct. If not, enter another phone number.
    If you don't have access to a device or Mac with your iCloud keychain enabled, you'll have to contact Apple support to verify your identity and get assistance making the change: http://www.apple.com/support/icloud/contact/.

  • My Final Cut Pro keeps crashing and restarting the computer what could be the problem?

    My computer keeps crashing and then restarting whenever I try to use my Final Cut Pro X.  I have an iMac with OSX 10.9.2 and 12GB of memory
    there is an ATI Radeon Hd 5750 1024 MB Graphics Card, I just don't understand why things are not working at all.
    What can I do to ensure everything is compatible and there is nothing I am missing.

    Whatever the cause, please return to this forum and tell us what you did or had done to get your system working again.
    There is no direct connection between FCPX and restarting the Macintosh that I am aware of. You haven't said if you can actually launch FCPX and then something initiates a restart. And you haven't said what error you see, if any. Nor have you actually said if FCPX has ever worked on that machine. Vital information.
    If you search this FCPX forum, you will see that other users who have had restarting issues have not reported back to tell us about their solutions. ON other Apple forums, perhaps those related to your specific hardware and version of Mavericks, you will find several obscure and seemingly unrelated restart issues.
    I have not had andy Macintosh restart issues for many, many years. My experience with Macs is that restarts are almost always hardware-based, usually incompatibility with some weird third party rig like a USB repeater, firewire adapter, cereal box keyboard, cheap monitor, ancient card reader, or even an oddball sound system. Start by disconnecting everything.
    Hope you get it figured out.

  • My power button is not working on my AIR - how can I shut down and restart the computer

    My power button on my AIR has decided to quit working - so how do I restart the computer?

    Your Mac should be turned off / restarted using the command in the Apple Menu. Use the power button only for emergency shut down

  • How to delete the saved score in a game downloaded from app store for my macbook and restart the game from the beginning ? please help

    HOW to delete the saved score in a game downloaded from the app store to restart the game from the begining with fresh scores.
    i am unable to do so. please help

    In system preferences, create a new account again, using the short name of the "deleted" account. You may be prompted to re-use the old home folder. Log out and log in to test it worked. Then log in as your new admin, and do the delete process again. Don't choose to securely delete this time - just a regular delete.
    When you have time to spare, go to Disk Utility, and use the Erase tab to securely erase free space on the drive. This will accomplish the same thing that your originally tried to do. Use the fastest method - anything more secure is a waste of time. You may need to run it overnight - it can take several hours.
    Matt

  • I updated my iTunes as it asked me to and restarted the computer but iTunes gives me a corruption error and it downloaded a PC speed maximizer on my computer.  I have no idea what this new software is and I have no idea how to get iTunes to work.

    I updated my iTunes as it asked me to and then restarted my computer but iTunes would not open as it said it was corrupted.  In addition as I was downloading the new iTunes a PC speed maximizer was downloaded onto my computer and I have no idea what for.

    Grappler1261 wrote:
    I updated my iTunes as it asked me to and then restarted my computer but iTunes would not open as it said it was corrupted.
    See Install & Update here >  http://www.apple.com/support/itunes/install/
    Also see Downloading Content in the same link.

  • Itunes crashes the computer as soon as it opens and restarts the computer

    Can anyone help with this issue as soon as I open itunes the computer crashes and restarts this happens also when I try to connect my iphone the operating system is Windows XP and all updates have been done for the OS.

    Open Console in Utilities & see if there are any clues or repeating messages when this happens.

  • I have problem to connect iChat. Sometime work and some time not working. When it was not working, there was a message on screen and said the mobile be server was not working. I needed to turn off computer and restarted the computer. Then it might. work

    To whom it may help,
           I use my iChat to do video chat with my granddaughter. I used to do iChat without any problem to connect with her in New York. However, After Mobil Me account closed, I accounted connection problems frequently. Sometime, I had to turn-off my computer then re-started the computer to make it work again. . When I had this problem to connect on iChat (the Mac did not allow me to choose "available"), the poped out window message said that " the iChat lost the Mobil Me account [email protected]" "The server connection was unexplected disconnect". Do you know what is my problem? My Apple ID for iCloud and previous Mobil Me account should be [email protected] I am no longer using [email protected] for Mobil Me e-mail address. My current iCloud e-mail address is [email protected] is no longer of using [email protected] account for my e-mail. If this is the problem, please let me know how to remove the [email protected] account from your system. Thanks!
    David

    SadisticIron wrote:
    i just baught my first iphone and it is a jalbroken
    Buzz! Thank you for playing!
    Discussing jailbroken devices is forbidden here by the Terms of Service.
    You can not get help here.

Maybe you are looking for

  • DVD drive no longer shows up

    I got a HP Pavilion g6-2392nr a few days ago and today I decided to create some recovery disks. This is Windows 8.1 I should mention. I created disks 1-5 but when I put a dvd in the drive for disk 6, it kept waiting for me to insert the disk. I tried

  • Explain plan before and after ??

    is there a way to find out what sql plan was before and what sqlp plan is right now ? i know we can look at dba_hist_sql_plan but not sure how to put it all togeather... i am on 10.2.0.3 i have a sql that running slow right now, i have the sql_id for

  • Adobe Acrobat XI Standard 11.0.10 silent install failing with error 1603

    Hello I just updated my AIPs for Adobe Acrobat Pro 11 Pro and Standard.  The Pro silent install is working fine.  But I cannot get the Standard install to run on Windows 7 or WIndows 8.   I have gone over every detail that I can think of or find on f

  • How to become a Oracle professional?

    Hello Everyone, I am an IT engineer with 5 years of experience in Java programming (client side) and Weblogic server. I am not completely satisfied with my work because my area of interest is in Oracle technologies. Can you please suggest me how i ca

  • How do i stop playing album snippets

    how do i stop playing album snippets from my library and play full songs?