Go to Post NERDs...gotta collect them all! - Conor Ryan [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 20-04-2016, 17:12
Rsave7 Rsave7 is offline
Memer
AKA: Ryan
FRC #0379 (The RoboCats)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Ohio, United States
Posts: 6
Rsave7 is an unknown quantity at this point
Moderate Lag With Dashboard

Hello,
We use Labview and have created a custom dashboard at the beginning of the season that we use to get information such a some sensor readings and a few values that we think that our drivers could make use of. We noticed from the beginning that it takes a few seconds for these values to update, probably around 2-2.5 seconds. This has become more and more annoying as the more values we have added and I would like to know if there is a remedy to this or any way to lower the lag on the values updating.

There are no problems or lag whatsoever with controls or the camera that we have on our robot. Both of those update and communicate perfectly but its just the custom value readings on the Dashboard that seem to have a 2 second or so refresh rate.

Any advice or input would be greatly appreciated.

Thanks,
Ryan Saverko
Team 379, The RoboCats
Reply With Quote
  #2   Spotlight this post!  
Unread 20-04-2016, 18:08
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 467
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Moderate Lag With Dashboard

Can we take a look at your dashboard code? That would really help!
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #3   Spotlight this post!  
Unread 20-04-2016, 18:11
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 570
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Moderate Lag With Dashboard

Can you look in Resource Monitor and tell us the total bandwidth usage when you are connected to the robot, with the camera running?
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
Reply With Quote
  #4   Spotlight this post!  
Unread 20-04-2016, 20:57
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,748
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: Moderate Lag With Dashboard

How are the values being updated? What tab page are they on?

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 21-04-2016, 21:34
Rsave7 Rsave7 is offline
Memer
AKA: Ryan
FRC #0379 (The RoboCats)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Ohio, United States
Posts: 6
Rsave7 is an unknown quantity at this point
Re: Moderate Lag With Dashboard

Thank you guys for the responses and my apologies for not responding right away, had a busy couple of days but I will share the code along with the other information tomorrow afternoon as I don't currently have the code with me.

They are in the Basic tab of the dashboard and in (i believe the first loop? can confirm tomorrow) in the block diagram with the other values such as joystick readings that display on the dashboard.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-04-2016, 07:20
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,748
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: Moderate Lag With Dashboard

Several of the tabs are Bound to network variables and update bidirectionally at 10Hz or whatever the rate that the client is run at. The first loop, however, runs at whatever rate you determine, and variables placed there, could run much faster or much slower depending on if the loop has a large delay or a large amount of work to do.

The next thing I'd do is to probe the i terminal of the first loop and see if it goes up by 10 per second, 1 per second, or seconds per increment. You can drop timers and be more precise, but this is usually a good start.

You may have lots of stuff running in the top loop and you may want to separate some of your network variables out. If you have a simple binding other tabs may make sense. Otherwise, you can keep them and move the expensive/slow stuff out of the top loop.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 25-04-2016, 16:19
Rsave7 Rsave7 is offline
Memer
AKA: Ryan
FRC #0379 (The RoboCats)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Ohio, United States
Posts: 6
Rsave7 is an unknown quantity at this point
Re: Moderate Lag With Dashboard

Quote:
Originally Posted by Greg McKaskle View Post
Several of the tabs are Bound to network variables and update bidirectionally at 10Hz or whatever the rate that the client is run at. The first loop, however, runs at whatever rate you determine, and variables placed there, could run much faster or much slower depending on if the loop has a large delay or a large amount of work to do.

The next thing I'd do is to probe the i terminal of the first loop and see if it goes up by 10 per second, 1 per second, or seconds per increment. You can drop timers and be more precise, but this is usually a good start.

You may have lots of stuff running in the top loop and you may want to separate some of your network variables out. If you have a simple binding other tabs may make sense. Otherwise, you can keep them and move the expensive/slow stuff out of the top loop.

Greg McKaskle
So i probed the iteration terminal with the code running but i couldn't do it with it connected to the robot because the team was doing stuff with it and such but i observed that it runs every 4 or 5 milliseconds so it seems like its running pretty fast and i couldn't actually find the wait so i think its just running as fast as it can. Would that be a problem?

I also noticed that while tethered via Ethernet to the robot that the dashboard values don't actually lag; only when it is wireless is when it lags so maybe a bandwidth problem? i mean i don't see how we would be using up too much bandwidth but i guess it could be possible?

I uploaded our code to google drive, this was my first time doing this so please let me know if i did it wrong.

https://drive.google.com/open?id=0B9...0p2TUtXV3RKVVk
__________________
“Scientists discover the world that exists; engineers create the world that never was.”

― Theodore von Karman
Reply With Quote
  #8   Spotlight this post!  
Unread 25-04-2016, 16:21
Rsave7 Rsave7 is offline
Memer
AKA: Ryan
FRC #0379 (The RoboCats)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Ohio, United States
Posts: 6
Rsave7 is an unknown quantity at this point
Re: Moderate Lag With Dashboard

Quote:
Originally Posted by Hitchhiker 42 View Post
Can we take a look at your dashboard code? That would really help!
https://drive.google.com/open?id=0B9...0p2TUtXV3RKVVk
This is just our dashboard code. the values being called are just numbers or Booleans.

Quote:
Originally Posted by MrRoboSteve View Post
Can you look in Resource Monitor and tell us the total bandwidth usage when you are connected to the robot, with the camera running?
Sorry, i wasn't able to do that before we packed up the robot for worlds.

Thanks to both of you, please let me know if you have any ideas!
__________________
“Scientists discover the world that exists; engineers create the world that never was.”

― Theodore von Karman
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 03:45.

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