Go to Post but yea. people have this perception of robots as like, the terminator. you don't have to be a super genius to do this stuff. - christina_omg [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 08-02-2013, 21:59
Woolly's Avatar
Woolly Woolly is offline
Programming Mentor
AKA: Dillon Woollums
FRC #1806 (S.W.A.T.)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Springfield, MO
Posts: 512
Woolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond reputeWoolly has a reputation beyond repute
Smart Dashboard Values Freezing

We're having trouble with values on the SmartDashboard freezing after a few minutes of runtime. Only one value (set to update every 5 thousandths of a second from the robot code), freezes, and the others stay working.
After a few Google searches, I can't seem to find anything useful in alleviating the situation.

One theory I have is that I'm trying to update too quickly, and I should write the value to a local in periodic tasks, and then have a separate loop to push it to the dashboard at 30fps or something more reasonable.

The other would be I need to allocate this specific value it's own prefix.

I'll try to fix those tomorrow if I don't find any other potential answers than those, because I really have no concrete answer of what is wrong with it.
__________________


Team 1806 Student: 2012-2013 | Mentor: 2013-Present
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2013, 22:15
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: Smart Dashboard Values Freezing

It is worth trying what you describe, but those shouldn't be issues.

One thing to check is to see if both sides are updating the variable. By design, the server/robot wins the tie, so if the variable is changing on the client and occasionally written by the robot, the robot may be stomping the other value updates.

Another thing that is worth mentioning is that the values for client and DS are only replicated at 100ms periods unless you give them different timeouts. Another option is to call the Flush command if you want the updates to be sent immediately. Again the changes will propagate to local machine copies almost immediately, but if you are setting it that quickly, you may want to change the communication rate between machines.

Greg McKaskle
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 22:50.

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