06-25-2014 05:18 PM
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.
06-25-2014 05:25 PM
06-26-2014 11:26 AM
Thanks for the suggestion. That did the trick and saved me a lot of time not knowing what I was looking for.