View Single Post
  #2   Spotlight this post!  
Unread 02-02-2009, 09:20
a3aperez's Avatar
a3aperez a3aperez is offline
Registered User
no team
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 9
a3aperez is an unknown quantity at this point
Re: Telling Labview which loop to execute first

Well, let's say you want your first For Loop to run 20 times. You could wire the 'i' in the For Loop to a Comparison. Compare the value of 'i' to 20, then make a Case Structure with the T/F value that results from that comparison. If the value is True, then run the second For Loop, if it's false, don't do anything.

Just tested it out and it works. You make one big For Loop, a Case Structure inside that For Loop that is only true when certain amount of iterations of the big For Loop have taken place and another For Loop inside the True value of the Case Structure.
Reply With Quote