View Single Post
  #6   Spotlight this post!  
Unread 06-01-2009, 07:18
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview SubVI return and continue looping

To the original question, a subVI cannot return until its whole diagram is complete and all of its outputs are ready. So you cannot have it be partly running and partly returning.

Your choice is to have the loop in the caller, making many calls to give and get data from the subVI, or you can push the loop into the subVI. The template shows both.

Using globals is fine as long as you have only one writer, but be careful when you want more than one loop to write. You can safely have as many reader as you want, but of course they may not always be in sync with each other.

Greg McKaskle
Reply With Quote