View Single Post
  #3   Spotlight this post!  
Unread 19-02-2013, 09:19
AquaMorph's Avatar
AquaMorph AquaMorph is offline
Alumnus of 2059
AKA: Christian Colglazier
FRC #2642 (Pitt Pirates)
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2008
Location: Cary
Posts: 78
AquaMorph is on a distinguished road
Re: Running Loop in Parallel

Quote:
Originally Posted by Omar View Post
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.
I updated the code.
Attached Thumbnails
Click image for larger version

Name:	LabVIEW Periodic Tasks Loop.PNG
Views:	20
Size:	6.0 KB
ID:	14109  Click image for larger version

Name:	LabVIEW Set Angle.PNG
Views:	20
Size:	24.3 KB
ID:	14110  
__________________
FRC Drive: Play Store FRC Manager: Play Store
Reply With Quote