View Single Post
  #6   Spotlight this post!  
Unread 21-02-2010, 21:44
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,748
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?

There are many ways of doing this. My guess is that putting the code into Robot Main had it run in parallel with Begin, and therefore not get valid references. If you want to use this pattern for something else, go ahead and place the code into the subVI Periodic Tasks. Unless you are going to guarantee that Begin completes before your code requests the I/O references, it is best not to put code into Main.

Greg McKaskle

Last edited by Greg McKaskle : 21-02-2010 at 21:45. Reason: grammar
Reply With Quote