Go to Post It's a club if you have a bunch of people who hang out and do nothing - It's a team if all you all work together and cooperate to win. - Tytus Gerrish [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 11-02-2011, 15:32
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Lag

Hello, I am using Labview, and have working code built and on the robot. works fune, but the control lag can range anywhere from atleast .5 sec up to 4 seconds. I was wondering if anyone else was getting this problem or knew a solution

-Newman

Also side note, please post multiple questions/solutions at a time because it makes it easier on my part for the testing standpoint to try many theories/solutions at once instead of trying one, responding and then waiting for another response. Very much thanks ahead of time!

-Newman
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2011, 16:10
jcbc's Avatar
jcbc jcbc is offline
Registered User
AKA: Julie
no team
 
Join Date: Aug 2010
Rookie Year: 2011
Location: PA
Posts: 53
jcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the rough
Re: Lag

Are you running in debug mode or are you building and running as start-up?

Do you have waits or delays somewhere in your loop(s) that look for joystick/control input?
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2011, 16:25
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: Lag

Make sure you don't have any fast-running loops eating up CPU time. There was an issue in one version of the 2010 Robot Project where the loop that blinks the cRIO light didn't have a delay where it needs one.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2011, 16:53
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Re: Lag

build, then run as startup.
no loops, that i can think of
1 joystick for motor control
1 joystick to control a solenoid and a seperate motor
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2011, 18:02
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Re: Lag

What is the whole deal with the Firmware updates and CAN id's? What is the difference/issue in using 2 old and 2 new for controlling the drive motors
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2011, 22:05
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Lag

I get this problem all the time, when debugging totally new segments of previously un-run code or heavily modified code.

The major cause is an error somewhere. I had the fun experience just yesterday while migrating code from the test vehicle to the real robots, forgetting to change a few resources (specifically, solenoids that were on Spikes are now on Solenoids). Every time the WPI lib gets an error, it logs it and sends it to the DS, which takes time. Times 2 for two Refnum Gets, plus the wait 33ms for the loop time, and it was enough to trip the watchpuppy on the drive motors. What did work was very very laggy.

A quick look at the Diagnostic tab showed me that there were errors coming in, the VI that caused the error, and the call chain.

It was helpful data, but in this case I would much rather ignore the error since it completely incapacitates the entire drive system.

To try:
Clear the errors and run your code again, to see what the Dashboard gives you in the Diagnostic tab.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2011, 10:18
mike1010100 mike1010100 is offline
Registered User
FRC #1307 (RoboSaints)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Hampton, New Hampshire
Posts: 26
mike1010100 is an unknown quantity at this point
Re: Lag

I occasionally get something about a loop not working fast enough or going fast enough in "robot frive" but, as of now, I have no loops in my programming, except for the periodic tasks, which are currently empty
On the wtachdog note, I currently have deleted it in its intirety from my code becuase it wasn;t being fed, but at the same time it was. then when it eventually was fed, it would get a little spritz of not fed error. no watchdog, no more error.
also even before, when i was running with watchdog w/no errors, i was having control lag

-Newman
Reply With Quote
  #8   Spotlight this post!  
Unread 07-03-2011, 16:07
jcbc's Avatar
jcbc jcbc is offline
Registered User
AKA: Julie
no team
 
Join Date: Aug 2010
Rookie Year: 2011
Location: PA
Posts: 53
jcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the roughjcbc is a jewel in the rough
Re: Lag

Sorry for not posting this earlier, but we discovered that using a Windows Vista laptop as the driver station computer results in control lag. I don't know if this could be the source of your lag, but it's definitely something to look into if you are not using a Classmate computer.
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


All times are GMT -5. The time now is 20:29.

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