How do I cancel a sub vi stuck in an infinite loop?

Hi,
I am attempting an implementation of the Constrained Nonlinear Optimization sub vi.  It works perfectly 99.9% of the time but gets stuck the other .1% of the time.  It is supposed to time out when it cannot find a solution, but it is failing to do so.  Consequently my VI regularly crashes.
Apparently this is a known issue with this subvi.  The NI whitepaper mentions that this is caused by a subvi while loop that can get stuck in an infinite loop.  The work around is suggested to be to add a counter to the loop and exit it after a certain number of iterations.
I can find the infinite loop occuring in the subvi.  But the sub vi opens as a clone and will not let me edit it.  How do I work around that?
Failing that, is there a way from the main vi to cancel the optimization vi after a certain time so that the program can move on?
Suggestions would be appreciated.

Abort the program. Press ctrl+M when you have VI opened as clone. This will open it in edit mode.

Similar Messages

  • Igxprd 32, device driver stuck in an infinite loop

    Just attempted to reset a hard drive on our T61 to its factory settings (Windows XP) using the "Recovery CD Set"  (rescue and recovery cd, supplemental product recover cd, and 6 product recovery cd's).  During the final step, the computer reboots itself; however, Windows can't load.  I keep getting an error on a small blue screen, referencing a problem with "igxprd32" and that the device driver got stuck in an infinite loop.  How can I fix this issue.  (Product ID 6465CT0)  Thank you!

    Kindly try to boot the system into Safe mode and then uninstall the display driver.
    After this you should able too boot the system into normal mode. Download the latest driver from lenovo website
    http://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/7ld152ww.exe
    Best Regards,
    Tanuj
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How does one cancel Creative Cloud. I am in a loop

    how does one cancel Creative Cloud. I am in a loop

    Adobe contact information - http://helpx.adobe.com/contact.html may help
    or
    Adobe Connect Support phone numbers

  • How to Stop Message Driven Beans to go into an infinite loop

    hi,
    Am kiran peddireddy, have the following problem. When i sent a chunk of 50 messages to the MessageDrivenBean, let us say 25 have passed and at the 26th message there was a problem and could not deliver. so, it throws an exception due this the MDB goes into an infinite loop. Can anyone suggest how to stop the MDB from infinite loop. I need help for this ASAP.
    thanks,
    Kiran Peddireddy.

    To Crackers,
    You have to let the container deal with the message - expire/cancel the message after a certain number of tries. This is easy to manage in the WLS console. Which version of Weblogic has this option? 7.0 or 8.1 ?
    I didnt see this option in Weblogic 7.0!!!!!!
    Corect me if I am wrong.
    Seetesh

  • My Ipod is stuck in an infinite loop not like the others so far discussed

    Today out of the blue my 5th Gen ipod displays the starts making an ominous clicking noise, displays the "sad ipod face" and then starts flashing "battery very low: please wait" then it shuts off the apple icon appears and the whole thing starts over. I've tried to boot it in Disk mode which I managed once right after it happened but I was hesitant to restore because I was at work and would loose all my songs. It then proceeded to freeze and now is stuck back in this infinite loop. I plugged it to two different computers and a car charger and nothing seems to make it charge but it had at least half a charge before it started with this thing. Someone Help Me Please!!!
    30gb 5th gen ipod   Windows XP Pro  

    Here is a pretty comprehensive post about the sad iPod icon. Be aware that it's quite involved and contains some info that will almost certainly void the warranty. If your iPod is still within the warranty period, you should use that option first.
    The Sad iPod icon.
    You can arrange online service here.
    Service request.

  • Trying to turn off two step verification but just stuck in an infinite loop

    So, I try to turn two step verification off, I go to manage my ID, to Security and choose Turn off Two Step...so far so good
    I am told that I have to choose three security questions, enter my DOB and provide a recovery email, then press Continue...still good
    A window pops up asking whether I am sure I want to turn it off, it warns me that I have to choose three questions and I am presented with two buttons, Cancel or Turn Off (That turn off button looks very tempting...so I click it)
    ...so...I am asked to provide three new questions, my DOB and a recovery email address....
    And repeat....and repeat...
    I have tried on different browsers...I have tried on two different Macs and on a Windows pc....
    Any help?

    eh?

  • Help: Stuck in an infinite loop with firmware update

    Need some help here.
    I have a 2013 21.5" iMac, running Mac OS X Mavericks 10.9.
    Recently, during a firmware update, my kids pulled the cord (they claim innocence).  Now, when I boot the machine, it goes to the white firmware update screen, does the full progress bar, and then shuts down.
    It doesn't restart itself.
    When I power it back on, it does the firmware update again.
    How can I fix this?  I have access to other Macs, USB keydrives, Firewire cable, etc.  Just need to know exactly what to do.  Tried searching the web, but didn't find an answer for this situation.  I'd rather resolve myself than truck it down to the Apple Store.

    You can try this:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    If that doesn't work, see below.
    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    Back up all data on the internal drive(s) before you hand over your computer to anyone. There are ways to back up a computer that isn't fully functional—ask if you need guidance.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
    Keeping your confidential data secure during hardware repair
    Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.
    *An SSD doesn't need to be zeroed.

  • My droidx is stuck in an infinite loop at the start-up

    Hello, I turned my droidx on yesterday and it can't get past the red eye. It freezes on the redeye then goes back to displaying "droid" then back to the redeye and it just continues this loop indefinitely. Anyone know how to fix this?
    Thanks in advance

    droidx is infinaite loop..i held down the home button and the power button and got to the android system recovery screen....at the bottom of the page it reads...E:cant open /cache/recovery/command......so what do i do now?...my options on screen are...wipe data/factory reset....or wipe cache partition.............help!!!!!

  • Stuck in an infinite loop (heh) with Lion recovery

    I'm running the Lion Internet recovery to get a fresh install of the OS on one of my systems, but I've hit a snag. Each time I click the "Install" button, I get a dialog box informing me the terms and conditions and Apple privacy policy has changed. It says "Click OK to view," and I do so. Unfortunately, nothing happens at this point. I just see the Lion installer still stalled where it was before. I can click the "Install" button again to be greeted by the same dialog box and click "OK" again, but I can't get further. I moved windows around to see if there is a policy hiding somehwere, but that doesn't appear to be the case. I even thought I might be able to agree to whatever changed if I logged into the Mac App Store on another computer, but I'm not notified of any updated policies when I do this. So, at this point, I'm sitting in front of a Macbook that refuses to let me do a clean Lion install because I can't agree to privacy policy updates it refuses to show me. If it makes any difference, this is an early 2008 white Macbook. What do I do?
    UPDATE: I am not using the officially termed "Internet Recovery." I am, in fact, using the Cmd-R method which downloads from the Internet (hence the confusion). Sorry!

    It's been deleted. You would need to boot into a Snow Leopard system so you could re-download it from the App Store. If you are able to do this then be sure to quit the installer when the download has finished. Copy the installer to a safe spot on your hard drive. You can make your own bootable DVD or flash drive once you have a copy of the installer: Burning A Lion Boot Disc. Also, see About Lion Recovery.

  • Stuck in an infinite loop trying to pick paypal (yes I am US)

    So basically I have my account and I am trying to confirm a payment method for it. I have picked paypal multiple times (as of now i have 5 "billing agreements" with itunes in my account.) but i tunes will still not realize this and says i have to register a payment method every time i try to download a song. I tried using a credit card today and i got the whole "wrong security code" crap. this is really dumb. Support was of no help either.

    eh?

  • How to install firefox, when trying says previous version detected must reboot. Stuck in infinite loop

    Trying to install newly downloaded firefox (had previously removed about a month ago through programs uninstall), however when I try to run the install, it says a previous version is detected, and the system must reboot. System reboots, but install never happens, I go to run the download again, and it appears I'm stuck in an infinite loop. I can't get latest version firefox to install

    I succeeded in installing Firefox after getting this message.
    I went to add/remove programs to verify that Firefox wasn't on the list, then I went to the program files directory and deleted the Mozilla/Firefox directory that was left over from the uninstall.
    I attempted to reinstall Firefox and, voila, it installed with no issues.
    I know it can be dangerous to delete a program directory, but if you have properly uninstalled the program itself and it isn't in the add/remove list (but still exists in the program directory), deleting the parent directory for the program should affect system performance.
    I have done this dozens of times over the years and never had a problem (I have NEVER deleted a system directory though. That would be a BAD idea).
    I hope this helps.
    /CDNVIKING

  • SQL stored procedure Staging.GroomDwStagingData stuck in infinite loop, consuming excessive CPU

    Hello
    I'm hoping that someone here might be able to help or point me in the right direction. Apologies for the long post.
    Just to set the scene, I am a SQL Server DBA and have very limited experience with System Centre so please go easy on me.
    At the company I am currently working they are complaining about very poor performance when running reports (any).
    Quick look at the database server and CPU utilisation being a constant 90-95%, meant that you dont have to be Sherlock Holmes to realise there is a problem. The instance consuming the majority of the CPU is the instance hosting the datawarehouse and in particular
    a stored procedure in the DWStagingAndConfig database called Staging.GroomDwStagingData.
    This stored procedure executes continually for 2 hours performing 500,000,000 reads per execution before "timing out". It is then executed again for another 2 hours etc etc.
    After a bit of diagnosis it seems that the issue is either a bug or that there is something wrong with our data in that a stored procedure is stuck in an infinite loop
    System Center 2012 SP1 CU2 (5.0.7804.1300)
    Diagnosis details
    SQL connection details
    program name = SC DAL--GroomingWriteModule
    set quoted_identifier on
    set arithabort off
    set numeric_roundabort off
    set ansi_warnings on
    set ansi_padding on
    set ansi_nulls on
    set concat_null_yields_null on
    set cursor_close_on_commit off
    set implicit_transactions off
    set language us_english
    set dateformat mdy
    set datefirst 7
    set transaction isolation level read committed
    Store procedures executed
    1. dbo.p_GetDwStagingGroomingConfig (executes immediately)
    2. Staging.GroomDwStagingData (this is the procedure that executes in 2 hours before being cancelled)
    The 1st stored procedure seems to return a table with the "xml" / required parameters to execute Staging.GroomDwStagingData
    Sample xml below (cut right down)
    <Config>
    <Target>
    <ModuleName>TransformActivityDim</ModuleName>
    <WarehouseEntityName>ActivityDim</WarehouseEntityName>
    <RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName>
    <Watermark>2015-01-30T08:59:14.397</Watermark>
    </Target>
    <Target>
    <ModuleName>TransformActivityDim</ModuleName>
    <WarehouseEntityName>ActivityDim</WarehouseEntityName>
    <RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName>
    <ManagedTypeViewName>MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity</ManagedTypeViewName>
    <Watermark>2015-01-30T08:59:14.397</Watermark>
    </Target>
    </Config>
    If you look carefully you will see that the 1st <target> is missing the ManagedTypeViewName, which when "shredded" by the Staging.GroomDwStagingData returns the following result set
    Example
    DECLARE @Config xml
    DECLARE @GroomingCriteria NVARCHAR(MAX)
    SET @GroomingCriteria = '<Config><Target><ModuleName>TransformActivityDim</ModuleName><WarehouseEntityName>ActivityDim</WarehouseEntityName><RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName><Watermark>2015-01-30T08:59:14.397</Watermark></Target><Target><ModuleName>TransformActivityDim</ModuleName><WarehouseEntityName>ActivityDim</WarehouseEntityName><RequiredWarehouseEntityName>MTV_System$WorkItem$Activity</RequiredWarehouseEntityName><ManagedTypeViewName>MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity</ManagedTypeViewName><Watermark>2015-01-30T08:59:14.397</Watermark></Target></Config>'
    SET @Config = CONVERT(xml, @GroomingCriteria)
    SELECT
    ModuleName = p.value(N'child::ModuleName[1]', N'nvarchar(255)')
    ,WarehouseEntityName = p.value(N'child::WarehouseEntityName[1]', N'nvarchar(255)')
    ,RequiredWarehouseEntityName =p.value(N'child::RequiredWarehouseEntityName[1]', N'nvarchar(255)')
    ,ManagedTypeViewName = p.value(N'child::ManagedTypeViewName[1]', N'nvarchar(255)')
    ,Watermark = p.value(N'child::Watermark[1]', N'datetime')
    FROM @Config.nodes(N'/Config/*') Elem(p)
    /* RESULTS - NOTE THE NULL VALUE FOR ManagedTypeViewName
    ModuleName WarehouseEntityName RequiredWarehouseEntityName ManagedTypeViewName Watermark
    TransformActivityDim ActivityDim MTV_System$WorkItem$Activity NULL 2015-01-30 08:59:14.397
    TransformActivityDim ActivityDim MTV_System$WorkItem$Activity MTV_Microsoft$SystemCenter$Orchestrator$RunbookAutomationActivity 2015-01-30 08:59:14.397
    When the procedure enters the loop to build its dynamic SQL to delete relevant rows from the inbound schema tables it concatenates various options / variables into an executable string. However when adding a NULL value to a string the entire string becomes
    NULL which then gets executed.
    Whilst executing "EXEC(NULL)" would cause SQL to throw an error and be caught, executing the following doesnt
    DECLARE @null_string VARCHAR(100)
    SET @null_string = 'hello world ' + NULL
    EXEC(@null_string)
    SELECT @null_string
    So as it hasnt caused an error the next part of the procedure is to move to the next record and this is why its caught in an infinite loop
    DELETE @items WHERE ManagedTypeViewName = @View
    The value for the variable @View is the ManagedTypeViewName which is NULL, as ANSI_NULLS are set to ON in the connection and not overridded in the procedure then the above statement wont delete anything as it needs to handle NULL values differently (IS NULL),
    so we are now stuck in an infinite loop executing NULL for 2 hours until cancelled.
    I amended the stored procedure and added the following line before the loop statement which had the desired effect and "fixed" the performance issue for the time being
    DELETE @items WHERE ManagedTypeViewName IS NULL
    I also noticed that the following line in dbo.p_GetDwStagingGroomingConfig is commented out (no idea why as no notes in the procedure)
    --AND COALESCE(i.ManagedTypeViewName, j.RelationshipTypeViewName) IS NOT NULL
    There are obviously other ways to mitigate the dynamic SQL string being NULL, there's more than one way to skin a cat and thats not why I am asking this question, but what I am concerned about is that is there a reason that the xml / @GroomingCriteria is incomplete
    and / or that the procedures dont handle potential NULL values.
    I cant find any documentation, KBs, forum posts of anyone else having this issue which somewhat surprises me.
    Would be grateful of any help / advice that anyone can provide or if someone can look at their 2 stored procedures on a later version to see if it has already been fixed. Or is it simply that we have orphaned data, this is the bit that concerns most as I dont
    really want to be deleting / updating data when I have no idea what the knock on effect might be
    Many many thanks
    Andy

    First thing I would do is upgrade to 2012 R2 UR5. If you are running non-US dates you need the UR5 hotfix also.
    Rob Ford scsmnz.net
    Cireson www.cireson.com
    For a free SCSM 2012 Notify Analyst app click
    here

  • Empty trash stuck in infinite loop....

    I just upgraded to Mtn Lion and I have a hard drive with time machine back up from a leopard machine, I wanted to delete that, and use the drive with Mtn lion, I put the backups folder into trash and tried to empty it, it is stuck in an infinite loop, the items to delete is in -ve......anybody else seen this? how to recover, if I stop the process, the files are still there...any solutions?

    Stop the process. Remove the files from Trash and put them back on the disk they came from.
    Next, open Disk Utility (Applications/Utilities/Disk Utility.app), choose the hard disk that you were trying to delete the files from. Click the 'Erase' tab and then 'Erase...'.

  • Leopard Mail is stuck in an infinte loop, crashing, while syncing over IMAP

    I'm trying to setup an IMAP account on Mail in Leopard.
    Didn't realise it was going to be so painful
    I set up the basic IMAP account OK, and can send and receive emails.
    Now I'm trying to copy over my existing mailboxes so that they're on the IMAP server.
    I'm carefully moving about 50 messages at a time from a folder 'On my Mac' into an IMAP folder.
    One of the messages was 10MB in size, and I realised this wasn't a great idea. So during the upload, I clicked the little 'cancel' X in the progress bar.
    That seemed to work OK, and I carried on for 10 min or so, but now Mail is suddenly caught in an infinite loop.
    I get repeated warning messages saying:
    "Some actions were taken while the account was offline could not be completed". It seems to be still trying to copy the 10MB email message, and I get more and more copies of that message appearing in a temporary local folder. Then Mail just crashes.
    Each time I open mail, it's the same, thing. A few warning messages, then crash. So I'm stuck in an infinite loop.
    Be warned people: IMAP over Mail is still pretty buggy.

    This forum is for troubleshooting Mail under Mac OS 10.4 Tiger, not Leopard. You'll probably want to post your question in the Leopard Mail discussions:
    http://discussions.apple.com/forum.jspa?forumID=1223

  • Facebook and add-on page does not open stuck in a infinet loop

    I am able to use other ssl enabled sites like gmail from Firefox, but when I try to login to Facebook after the first page, It does not open. Have tried all the troubleshooting steps suggested for Facebook errors and https errors, no luck.
    I get stuck in an infinite loop on the next page. This is the security page which asks to setup a machine name.. (https://www.facebook.com/loginnotify/setup_machine.php?next)
    Please note there is no error displayed, the page just loops endlessly and does not display the Box which should ask me to set the device name for Facebook.
    The same thing happens when I try the Add -ons page via the Tools menu. I am able to use Facebook in Chrome on the same system system.
    Willing to work with the community to resolve this. Can also provide Wire shark dumps if required. Thank you for your time. Hope this gets resolved soon.

    Hi Matthew,
    Thank you for your question, I am sorry of the challenge as you have been at it for a while. [https://support.mozilla.org/en-US/questions/988977] pazos comment had a particular step to clear the cache after applying the update. I followed the mozilla hacks comments as well and saw you were in a loop after
    There was a follow up redit post that was successful from updating to 1.0, then to 1.1 with the update.zip then to 1.2 [http://www.reddit.com/r/FireFoxOS/comments/1xvq2w/how_i_got_12_working_on_zte_open/]
    Did these instructions help?

Maybe you are looking for