NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
gmiles@inventeering.com
Posts: 74
0 Kudos

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 StatusSHELL.vi to allow all my embedded loops be signaled to return.

Member
MatthieuD
Posts: 28

Re: For Loop with Break

Hi Guys,
 
This is now in LabVIEW 8.5... you can add the stop condition in the for loop :smileyhappy:
 
Matthieu
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page