Go to Post Improve yourself. Try not to tear others down. - Tom Line [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-2014, 19:46
MurphyOutlaws MurphyOutlaws is offline
Registered User
FRC #0677
 
Join Date: Jan 2013
Location: Ohio
Posts: 5
MurphyOutlaws is an unknown quantity at this point
Adding variables to customize dashboard

We're trying to customize the dashboard by adding the numeric values for our encoders, and after reading the tutorials on feeding variables into the dashboard, we created variables for both encoders (Using ”Write“ blocks)and fed them into a dashboard project, using numeric indicators. The indicators show up on the dashboard panel but don't change when the encoder readings change. Any suggestions for how to fix this? Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2014, 20:34
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Adding variables to customize dashboard

Did you add the "Read" blocks to your Dashboard project with the same name as the "Write" blocks in your robot project?
__________________
Per Audacia Ad Astra
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2014, 08:03
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: Adding variables to customize dashboard

You're using the SD Write function in your robot code, right?

In the Dashboard code, on which tab did you place the indicators? Unwired indicators in the Operation and Auto tabs are automatically bound to Smart Dashboard variables. If you want to use one elsewhere, you'll have to do a SD Read yourself.

Make absolutely sure that you've spelled the name of the variable exactly the same way in both the robot and Dashboard code.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2014, 14:46
chris.boyle's Avatar
chris.boyle chris.boyle is offline
Programming Mentor
FRC #0068 (Truck Town Thunder)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Truck Town Thunder (Brandon)
Posts: 36
chris.boyle is on a distinguished road
Re: Adding variables to customize dashboard

To lessen the impact on the cRIO performance, we have a separate loop that runs at about 250 ms which writes all values to the dashboard. This is slow enough for us mortal humans to read the changing values without bogging down the cRIO. We create a local variable that is read in the separate loop. It works very well for us.

Also in the dashboard application, we are explicitly calling the SD Read to get the value from the robot.
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2014, 07:13
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: Adding variables to customize dashboard

The default rate of transfer of the SD variables is 100ms. So updates faster than that will simply update storage on the robot and mark the items as dirty. The overhead to update values on the robot is about as small as I could get it.

If anyone wants the SD variables to update faster, you can change the update timeout or Flush.

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 20:58.

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