Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   arm loop stops drive (http://www.chiefdelphi.com/forums/showthread.php?t=94522)

jacob9706 12-04-2011 20:16

arm loop stops drive
 
i am having the problem of the arm while loop stoping the drive

http://i1093.photobucket.com/albums/...6/Untitled.png

that is what i have and when you push the button to move the wrist it stops everything

Mark McLeod 12-04-2011 21:26

Re: arm loop stops drive
 
You cannot have a delay loop inside the Teleop.vi.
Teleop must execute quickly and be free to leave, because it must service 50 packets a second from the Driver Station.

If you stop it, then it won't be able to react to new driver commands.

Your delay code would work better in Periodic Tasks.vi
It can pretty much be moved, as is.
Also, your While loops must have a time delay added to each of them. Otherwise, they will run at max speed and suck all the life out of your cRIO and nothing will work very well.

jacob9706 12-04-2011 22:34

Re: arm loop stops drive
 
thank you very much. will take what you said and apply to my code.


All times are GMT -5. The time now is 09:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi