View Single Post
  #2   Spotlight this post!  
Unread 21-02-2010, 15:27
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: "Wait" pauses all robot code?

Without looking at your code, I'm having to guess a bit, but it sounds like your tele is calling a subVI that takes its time to execute. On a LV diagram, a simple subVI call is synchronous, meaning that they are synchronized, and the caller will not complete until the subVI returns.

To have code run in parallel, move it into a parallel loop. Then come up with a way for the tele code to tell the parallel loop what to do. You could use fancier things, but a simple approach is to put the parallel loop into Periodic tasks, and use a global or two to let tele start things and let Periodic finish them.

Greg McKaskle
Reply With Quote