View Single Post
  #4   Spotlight this post!  
Unread 16-02-2010, 20:26
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Intra-Loop Timing Advice

The LabVIEW Forums are a good place.

I like using Queues to control my sub-loops. Queues are FIFO arrays; I enqueue a command from teleop or autonomous and dequeue from the loop that handles the commands. If you don't specify a timeout, the dequeue vi will wait until a command gets enqueued, effectively pausing the loop until it's needed. As a bonus, if the loop takes a long time to finish an iteration, other commands will still be added to the queue and processed in the order they were added.
__________________
Twitter Profile
Reply With Quote