|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
Re: Data delay between Crio and DS
Greg, can we send you our code to take a look? We're really at a loss.
|
|
#5
|
|||
|
|||
|
Re: Data delay between Crio and DS
Sure. PM me I suppose.
Greg McKaskle |
|
#6
|
||||
|
||||
|
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 Thanks again! |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
||||
|
||||
|
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?
|
|
#9
|
|||||
|
|||||
|
Re: Data delay between Crio and DS
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.
|
|
#10
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cRIO Program Delay | bomber7 | Programming | 2 | 01-29-2009 09:35 PM |
| Capture Data from the cRio | goodsky | Programming | 2 | 01-13-2009 09:27 PM |
| EDU-MINI RC Solenoid Switching times and Delay time? | Generalx5 | Technical Discussion | 0 | 01-25-2007 01:32 AM |
| interference between wires and connectors | Dan Zollman | Inventor | 5 | 12-18-2006 03:11 PM |
| Delay in results and awards: drying out | FRCOps | Championship Event | 0 | 05-01-2002 10:46 AM |