View Single Post
  #2   Spotlight this post!  
Unread 19-02-2013, 09:08
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Running Loop in Parallel

Correct! You do not want to have any loops that might take longer then 20ms to run inside your Teleop VI.

Move that function to Periodic inside it own continuous running while loop (wire a false to the conditional terminal). Put the get joystick (Enable) inside the outer loop. Put a short delay in the false case or "Disable" state to keep it from grabbing all the CPU time.

I think you will want to put the get "Disable Limit" inside the "Move Down for 1/2 second" loop so that it is updated each time around that loop.

Post back your changes.
__________________
Omar

Last edited by Omar : 19-02-2013 at 09:11.
Reply With Quote