Go to Post Large areas of ice in south Georgia is some what of an oxymoron. The best place for ice in south Georgia is in tea. - FrankJ [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2009, 11:36
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,532
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2009, 12:33
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
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.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2009, 12:44
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2009, 12:52
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,532
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Data delay between Crio and DS

Greg, can we send you our code to take a look? We're really at a loss.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2009, 15:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Data delay between Crio and DS

Sure. PM me I suppose.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2009, 16:58
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,532
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
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!
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2009, 17:47
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2009, 18:03
PurpleHaze's Avatar
PurpleHaze PurpleHaze is offline
My friend Jeff is from Sweden
AKA: J.D. Iglesias
FRC #2219 (MegaHurts)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Carbondale, Illinois
Posts: 5
PurpleHaze is an unknown quantity at this point
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?
__________________
Team MegaHurts 2219: If it ain't broken, wait a minute
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2009, 22:59
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Data delay between Crio and DS

Quote:
Originally Posted by PurpleHaze View Post
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.
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2009, 08:40
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,532
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cRIO Program Delay bomber7 Programming 2 29-01-2009 21:35
Capture Data from the cRio goodsky Programming 2 13-01-2009 21:27
EDU-MINI RC Solenoid Switching times and Delay time? Generalx5 Technical Discussion 0 25-01-2007 01:32
interference between wires and connectors Dan Zollman Inventor 5 18-12-2006 15:11
Delay in results and awards: drying out FRCOps Championship Event 0 01-05-2002 10:46


All times are GMT -5. The time now is 16:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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