Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Data delay between Crio and DS (http://www.chiefdelphi.com/forums/showthread.php?t=74553)

Tom Line 15-02-2009 11:36

Data delay between Crio and DS
 
We are running the Crio from our computer in labview, currently there are major delays in drive values and other data between the robot and the joystick, about a one to two second delay. Is this normal, or is there something else slowing us down other than running off the computer?

paulcd2000 15-02-2009 12:33

Re: Data delay between Crio and DS
 
Running off the computer slows you way down, but one to two seconds is huge. Do you have any complex vision code? that can slow stuff down.

Greg McKaskle 15-02-2009 12:44

Re: Data delay between Crio and DS
 
This sounds just like a behavior of the initial code. Have you updated the DS, cRIO, and you dev libraries to 3.0?

If this isn't it connect the serial cable from cRIO to a terminal program. That will tell a lot.

If there are lots of messages streaming to the serial, that will in fact cause this delay.

Greg McKaskle

Tom Line 15-02-2009 12:52

Re: Data delay between Crio and DS
 
Greg, can we send you our code to take a look? We're really at a loss.

Greg McKaskle 15-02-2009 15:09

Re: Data delay between Crio and DS
 
Sure. PM me I suppose.

Greg McKaskle

Tom Line 15-02-2009 16:58

Re: Data delay between Crio and DS
 
Greg - thank you. At this point we tracked the issue down to the vision code. We took that out for now since we are working on the drive train and traction control today.

Once we try to add it back in, you can be sure I'll be contacting you :yikes:

Thanks again!

Greg McKaskle 15-02-2009 17:47

Re: Data delay between Crio and DS
 
Not seeing the code, my guess is that the vision code was placed directly into the tele loop. This will seriously delay processing tele packets that are streaming in at 50Hz.

Instead, try putting the camera code to run in parallel and update a global or local variable describing where the target is. Then incorporate that into your fast tele loop or you auto loop.

Greg McKaskle

PurpleHaze 16-02-2009 18:03

Re: Data delay between Crio and DS
 
We are having the same issue with delay. Our camera code causes the robot to have a delay with receiving inputs of about a second. It is running in its own parallel loop, and yet it affects the whole system. We've got less than 24 hours till we ship, and we need to get this up and running... Help?

Alan Anderson 16-02-2009 22:59

Re: Data delay between Crio and DS
 
Quote:

Originally Posted by PurpleHaze (Post 822317)
Our camera code causes the robot to have a delay with receiving inputs of about a second. It is running in its own parallel loop, and yet it affects the whole system.

Add a Delay VI inside your camera loop to keep it from running at full throttle. Suitably chosen, that delay will give the rest of your code a chance to run.

Tom Line 17-02-2009 08:40

Re: Data delay between Crio and DS
 
Actually, we took the example labview code, copied it and pasted it directly into the vision processing .vi in the advanced framework. This caused a 1 to 2 second delay in everything we did.

We've got the next week or two to work with it since we held our controls system back (THANK YOU GDC), so we'll start working on getting the lead out of the routine on Friday.


All times are GMT -5. The time now is 15:12.

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