Reset a loop counter and restart the calculation

I have a while loop nested inside a loop for the calculation of a model.

Lets say that I am on the loop for counter 4. Suppose that I wanted to keep track of the number of iterations on a while loop, and if it exceeded a certain 100, exit say number the while loop.  I do this to avoid my model of computation being blocked somewhere due to optimization problems. Now, I want to restart the loop counter calculations 4.

Is there a way to do this in labview?

Well first of all, if you want to start the same program inside loop after it got stuck is going not only to get stuck again creating a permanent loop in the code? Would you not just to go and have some sort of identifier as one of the loops is stuck?

But I recommend just nesting your while loop inside an another while loop, and then connect the output to the out-while loop to a variable of the while loop inside, so if optimisation did not appear correctly then it simply repeats the inner while loop.

Although I am of my thoughts that you will end up just straight up in a loop permanent if optimization fails the first time.

Tags: NI Software

Similar Questions

  • updates Windows returns to the start-up and restart the portable computer

    I put a clean image of windows 7 on my laptop and started running the updates of windows. There were 200 +. They download and restarted the computer and start the installation. The problem is now that he gets so far installs it fails and he returned to the starting point and then restart the laptop and the process begins again. They only way I can get back to my computer through safe mode. Any suggestions?

    Try excluding upgrades recommended to install important updates and only load the Important updates first which should be updated about 159 200 not.

    If you get hung up refer to the latter.

    It is expected by M$, we must now jump through hoops to clean install.

    http://www.ZDNet.com/article/sticking-with-Windows-7-the-forecast-calls-for-pain/

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/Windows-Update-remains-at-checking-for-updates/ff3c442e-79a6-40d3-AC35-29e130cebef1

    If looking for updates to hang on a current installation,

    Switch your windows update setting to never check the updates temporarily

    Restart the machine

    Then you download this from your download folder run from there.

    https://TechNet.Microsoft.com/library/security/MS16-039?f=255&MSPPError=-2147217396

    Download the x 86 for 32-bit or x 64 for 64-bit

    Install it and restart when prompted too after he did a search of stand-alone for updates that should not

    take too long, it took all of 5 seconds, '' If '' windows update settings are turned on forever check

    updates before running from the downloads folder.

    Once it installs and restarts

    You can reset your updates affecting everything you had before default =...

    Then check the updates manually.

    I think that the solution came from Softpedia and Joel_CS posted on this thread,

    http://News.Softpedia.com/news/Windows-Update-hanging-when-downloading-April-12-patches-502886.shtml

    You must scroll down for Joel SC post threads, it is the last answer on this page,

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/Windows-Update-hangs/dbd539c3-bfc6-42DF-a6ff-0e55ef7938eb?page=6

  • installed the game CD Gears of War on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive.

    original title: Gears of War for PC (Vista)

    I installed Gears of War game CD on my computer (Windows VISTA) and make me "Please insert the correct DVD - ROM, click OK and restart the application" - but the disk is IN the drive.  I've been on the net and does not know what is the problem and why this game will not run.  I've installed, uninstalled, reinstalled tried to run as administrator, got the latest patch, all the things that have said all sites to do - anyone have any ideas?  Any help would be appreciated!  Thank you!

    Hi NoOneSpeciale,

    It is very possible that your CD may be damaged.  Is it possible to get another copy to try on your machine? Or try this copy on another machine to see if it works or not.
    Also check in control panel--> system--> for you Device Manager make sure that there is no yellow/red icon next to the CD player and it's function correctly.

    Let us know the result, Kevin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • When I try to run Age Of Empires with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    Former title: Trouble running games CD, post installation under Vista. That is to say 2 AoE, Warrior kings.

    I have vista on my laptop, I installed games like shogun and medieval total war and they both work perfectly, I tried to put it on the age empires and warrior kings: battles who are also on a cd format, I installed the last but they usually run after that. Although the instialltion is over, I get asked if I wanted to leave the program to run as administrator. : s

    DVD/CD drive recognize there is a disc, but does not work automatically. I can't install the program normally when I run the setup.exe for the game. When I try to run the program with the CD in, I get a message "Please insert the right CD-ROM, select OK and restart the application.

    I tried to run them in compatibility mode, using all variants. and also I tried soome of advice from the help article about the disk drivers. game discs are clean and one striped.

    Why can I install the program and access the drive to use the files it contains, but then not use the disk?

    Hello
     

    This problem may occur if one of the following conditions is true:
    a. you do not use the game disc to start the program.
    b. the CD player is not compatible with the program.
    c. using a copy of the program CD.
    d. you are not connected to the computer as an administrator.
    e. the programs interfere with the start of the game which is running but is invisible to you.
    f. the CD-ROM drive uses out-of-date drivers.
     
     
    I would ask you to try the methods listed in the article below:
    Error message or the game stops responding on the "Loading" screen when you start a Microsoft game: "insert the right CD.
    http://support.Microsoft.com/kb/228985/en-us

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • While in Mode to burn, I get a connent a burner and restart the player. What needs to be done when I though that my burner was first connected?

    I have the charger windows media player and I'm trying to burn a CD from my list of my drive misic hard exturnal but he will not even appear that there is a CD in the port and it says connect a burner and restart the player?

    Hello

    The problem occurs with any other CD burning software?

    Download and run the tool fixit from the links below and if it solves the problem.


    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.Microsoft.com/kb/982116


    Your CD or DVD drive cannot read or write media

    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    Kind regards
    Afzal Taher
    Microsoft technical support engineer

  • WMP 11 says connect burner and restart the computer

    WMP 11 has just started this problem when I click on the tab burn I it tells me to connect burner and restart the computer

    Hello

    1. do you get an error message when you try to download files?
    2. you have any third-party burning software installed on your computer?
    3. do you have Internet Explorer 8 is installed on your computer?

    Follow the steps mentioned below and check if it solves the problem with Media Player:

    Method 1: Run automated troubleshooting who diagnose and fix problems with your CD or DVD drive when trying to read or burn media automatically.

    See Your CD or DVD drive cannot read or write media

    Method 2: If the problem is new, run system restore to restore the computer to a point before the problem started.

    Refer to this article for help:
    http://support.Microsoft.com/kb/306084

    Kind regards
    Afzal Taher - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • START WINDOWS VISTA ERROR "the computer restarted unexpectedly or encountered an unexpected error." Windows Setup cannot continue. To install Windows, click "OK" to restart the computer, and restart the installation.

    I have a portable Gateway that will not start, but rather when I turn on the laptop, it gives me a box of caption read "the computer restarted unexpectedly or encountered an unexpected error." Windows Setup cannot continue. To install Windows, click "OK" to restart the computer, and restart the installation. I bought the recovery CD gateway and even made the recovery discs offered by Microsoft, but nothing helped. Or recovery CD were no help. I am running Windows Vista. Any suggestions?

    I have a portable Gateway that will not start, but rather when I turn on the laptop, it gives me a box of caption read "the computer restarted unexpectedly or encountered an unexpected error." Windows Setup cannot continue. To install Windows, click "OK" to restart the computer, and restart the installation. I bought the recovery CD gateway and even made the recovery discs offered by Microsoft, but nothing helped. Or recovery CD were no help. I am running Windows Vista. Any suggestions?

    Hey PeLon416

    If you have problems with the gateway recovery process, you will need to contact Gateway

    It's their recovery process not microsofts

    You may have a hardware problem

    support of bridge at the link below

    http://support.gateway.com/support/default.aspx

    Walter, the time zone traveller

  • My Windows Media Player says connect burner and restart the player.

    My Windows Media Player says connect burner and restart the player and I have and still get the same results

    Hello rorro1661,

    What you try to do in Windows Media Player?
    We need more information to help you:
    Maybe you try to burn a CD?
  • When I try to delete anything out of my windows mail Inbox stops and restarts the imedietly.

    Restart mail Windowas

    When I try to delete anything out of my windows mail Inbox stops and restarts the imedietly.

    Try to compact and repair the database (see www.oehelp.com/WMUtil/).  There is likely an inconsistency between what is really there and what think the database is where and who must reconcile the two.  So beware of interference from antivirus software which can cause these issues (see www.oehelp.com/OETips.aspx#3).

    Steve

  • Unable to complete the installation of windows vista, error message "Windows cannot configure one or more system components to install Windows, restart the computer, and restart the installation.

    I'm install windows vista Ultimate edition in my new laptop, but during the installation stage 'completion', the prompt message as "Windows cannot configure one or more system components to install Windows, restart the computer, and restart the installation", but my new laptop was no install any OS before, please help

    tan7655,
    If I read this correctly, you have a portable computer that do not have an operating system on it.  You try to install Vista and get the error.
    You've restarted the Vista installation?  So then you get the same error? If you have tried to install more than once and continue to receive this error, check that the laptop is capable of Vista?  You may need to check with the manufacturer of the laptop to see if it is able to support Vista. Mike Microsoft responds to the technical support engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • WINDOWS cannot OPEN THE FILE D:\Sources\Install.wim REQUIERED. Make sure that all required files for installation aare available and restart the installation. Error code: 0x8007000D,.

    IM TRYING to re - INSTALL WINDOWS VISTA ON MY T-6321 to the front door, BUT WHEN I INSERT THE DISC, AND INSTALL, a MESSAGE APPEARS SAYING: WINDOWS cannot OPEN THE FILE D:\Sources\Install.wim REQUIERED. Make sure that all required files for installation aare available and restart the installation. Error code: 0x8007000D, SHOULD ALL BE ON THE DISCALREADY?

    Hi JRCLNSIN100,

     

    Welcome to Microsoft Answers Forums.

    We would like to get some more information from you to help solve your problem. You better, please answer the following questions.

    ·         What is the disk you use to reinstall?

    ·         Is this a recovery or reinstalling the disc you are using?

    ·         When exactly do you get this error message?

    ·         What is the edition of Windows Vista, you try to install?

    ·         How old is the drive that you are using?

    ·         How are you starting the installation process?

    After researching the error 0x8007000D code is essentially due to file corruption and a problem with the drive itself.

    First check if you have scratches or dust on the disc and clean the surface and try again.

    To check if the disk is wrong, you will need to copy the contents of the DVD to the hard drive and try to install using that.

    To perform a flat installation of Windows Vista, follow these steps.

    Note The hard disk must have at least 3 GB of free space on the disk for the Windows Vista installation files. The hard disk must have at least 15 GB of additional disk space to install Windows Vista. For more information about system requirements for Windows Vista, see the Microsoft Web site at the following address:

    http://www.Microsoft.com/Windows/products/windowsvista/editions/SystemRequirements.mspx

    1. Insert the Windows Vista installation disc.
    2. Start Windows Explorer.
    3. In Windows Explorer, click to select the drive for the Windows Vista installation disc.
    4. On the Edit menu, click select all.
    5. On the Edit menu, click copy.
    6. Click to select the hard disk you want to contain the flat installation files.
    7. On the file menu, point to new, click the folder, type Windows Vista Setupand then press ENTER.
    8. Double-click the Windows Vista Setup program, and then click Paste on the Edit menu.
    9. Double-click Setup.exe, and then follow the instructions that appear.

    See the link below for more information on flat installation.

    How to perform a flat installation of Windows Vista

    http://support.Microsoft.com/kb/928902

    This problem can also occur if the firmware of the DVD drive is defective or obsolete.

    If the step above does not resolve the question suggests that you install the latest drivers for the DVD player on the computer.

    For more information please visit the link below.

    Error message when you try to install Windows Vista by using the DVD drive on the computer: "Windows cannot install required files".

    http://support.Microsoft.com/kb/930984

    Hope this information is useful.

    Let me know if it worked.

    All the best!

    Thanks and greetings

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I can't burn a cd because it tells me to connect a burner and restart the player

    I can't burn a cd because it says connect a burner and restart the player I don't kno how to fix it. I was able to burn CDs on my computer before so I did not kno what happened and your help would be very appreciated.

    It is certainly possible that you have a hardware problem
    but the following links may be worth a visit:

    (982116) your CD or DVD drive is missing
    or is not recognized by Windows or other programs
    http://support.Microsoft.com/kb/982116
    (Windows XP / Windows Vista / Windows 7)

    Your CD or DVD drive cannot read or write media
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

  • computer restored IBM won't let me go beyond the introduction of identy... closes and restarts the computer to the same: Enter name and ID... then again, it does the same thing. How can I save this monster?

    computer restored IBM won't let me go beyond the introduction of identy... closes and restarts the computer to the same: Enter name and ID... then again, it does the same thing.  How can I save this monster?

    Hello

    First, disconnect all the external devices connected to the computer, and then try to start and check what is happening. If the same happens, then you can try to start in safe mode and check if you are able to boot to the desktop. Only basic files and drivers needed to run Windows are started. If a problem doesn't reappear when you start in safe mode, you can eliminate the default settings and basic as possible cause device drivers. To start in safe mode follow the link.

    Start your computer in safe mode

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I just bought a PC C50 toshiba laptop with windows 10. I would like to ask if someone can tell me if it is easy to remove the Windows OS 10 and restart the laptop with my windows disc 7.

    * Original title: delete windows 10

    Hi, I just bought a PC C50 toshiba laptop with windows 10. Is not not a geek, I would like to ask if someone can tell me

    If it is easy to remove 10 OS and restarting the laptop with my windows disc windows 7, the reason why I want to do is

    because I have aready have a desk top running 7, but it is to the top at the moment and could use the laptop backup

    You must ask your win-10 computer make this question

    They would have made drivers for this machine for win - 7

    If not then no.

    Your only option is to return it and ask for a unit that has win 7 drivers.

  • Burning CDs with Windows Media Player in Windows 7. "Error: connect a burner and restart the player.

    Original title: CD burning with Windows Media Player in Windows 7

    When I try to burn an audio CD with Windows Media Player, I get the message "connect a burner and restart the player.

    I am able to burn audio CDs using ITunes, so I don't think that my CD/DVD burner is defective.

    Thanks for your help.  The "fix it" has not worked, but I checked the settings of my Nero 8, Nero Toolkit, Nero Burn Rights program, and he was the one who said "everyone has burn rights" or "nobody burn rights.  When I changed the option to "everyone", everything started to work properly.

Maybe you are looking for

  • Satellite Pro L770 - Win 7 x 64 can't install the bluetooth driver

    Hello. I did a clean install of Windows 7 x 64. I installed the SD driver and wireless driver.I tried to install the bluetooth stack... It installs the Bluetooth USB Controller-10 TOSHIBA and then located just 25% "installing the driver of Bluetooth.

  • 7520: trying to re-establich HP 7520 USB connection

    I moved and want o connect the computer to the printer. The printer appears offline. The printer also appears greyed out: not active. Why the computer does not recognize the printer on-line. I don't want wi - fi, as I am waiting for a new internet co

  • Desktop icons and windows taskbar does not load

    My friend has problems with his computer.  Yesterday, his computer was when the power has jumped.  When the power came back and she has restarted his computer, his office without icons or the windows task bar.  She can see his wallpaper and that's it

  • Program to freeze when closing IE

    I am running Vista and IE7.  Recently, often when I try to close a site Internet Explorer the computer freezes and my only escape is to close the program running with the Task Manager.  any suggestions?

  • DVD player will not read is no longer drives

    Recently, I went for 2 weeks - when I left my computer was working and my dvd drive could read all my disks (mainly games) My return however (and after the installation of 18 updates last night) the bed DVD player is no longer just about any type of