|
Re: Running Loop in Parallel
Quote:
Originally Posted by Omar
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.
|