LabVIEW Developers Feature Brainstorming

Showing results for 
Search instead for 
Did you mean: 

For Loop with Break

Re: For Loop with Break

I though it might be usefull.  I use it through out my code when I want both the fuctionality of a For Loop and a While Loop.  As far as indexing to an array, this could be easly done by enabling the indexing and a array size vi conected as N.

The concave sub-VIs act to wrap the Indexer and the loop status objects, but you can easly change the ICONs and fill them in, if the concaved nature irritates you.

In some cases I also add a Globle Stop Boolean to the to allow all my embedded loops be signaled to return.

0 Kudos
Message 61 of 62

Re: For Loop with Break

Hi Guys,
This is now in LabVIEW 8.5... you can add the stop condition in the for loop Smiley Happy
Message 62 of 62