Go to Post If it's not a sport, and it's not an art, it might as well be criminal behavior, because that's how you're going to be treated. - jasoni [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 27-01-2015, 11:33
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
2015 Dashboard - How to use Custom Tab

Dear CD,

I am a little confused how to take advantage of the Custom Tab in a new Custom Dashboard for our team. The driver station parameters I passed in 2014 are no longer available. I would like to display a dozen, variables
in this tab. Does someone have an example they can post? I have looked through the online documentation and Labview tutorials and have not found one yet... Of course the changes would most likely occur in both the TeleOp.vi and Dashboard Main.VI

Best regards.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2015, 12:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 2015 Dashboard - How to use Custom Tab

There is an example built into the default programs.

In the default Dashboard About halfway down you'll see a block of variables used on the Basic tab.
In Teleop.vi you'll see corresponding reads of some of those same variables.


Here is another example that places new variables on the Custom tab.
It shows two boolean variables Marc 1 and Marc 2 that are explicitly treated as SD variables.
It also shows another two boolean variables Marc 3 and Marc 4 that are implicitly treated as SD variables.
All four are read on the robot side in Periodic Tasks.
Attached Thumbnails
Click image for larger version

Name:	DashboardVariables.jpg
Views:	152
Size:	336.0 KB
ID:	18011  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-01-2015 at 12:52.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2015, 12:51
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: 2015 Dashboard - How to use Custom Tab

By default, the custom tab will automatically bind any control put into it to a SmartDashboard variable that can be read or written on the robot.

So there shouldn't be any need to change code in the dashboard unless you want a fancier display or calculation before display. If you do, the top loop shows an example of reading variables and displaying them in charts.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2015, 13:20
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: 2015 Dashboard - How to use Custom Tab

Mark and Greg,

Thanks for the example! I was also confused because when I dropped a new indicator into the Dashboard Custom Tab I could not see the parameter in the block diagram panel. It took me a while to find the command to flip between both locations in the front panel and block diagram which located the parameter.

I also dropped a control into the Dashboard Custom Tab.

The indicator will receive the value sent from TeleOp.vi via the SD write VI correct? See picture.
Attached Thumbnails
Click image for larger version

Name:	Dashboard Custom 3548.png
Views:	80
Size:	128.7 KB
ID:	18013  
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 27-01-2015 at 13:23. Reason: swap control with indicator?
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2015, 13:54
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 2015 Dashboard - How to use Custom Tab

That should work fine.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2015, 17:31
icq10 icq10 is offline
Registered User
no team
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Unknown
Posts: 24
icq10 is an unknown quantity at this point
Re: 2015 Dashboard - How to use Custom Tab

Is it allowed to modify the other tabs? Or even the color/appearance?
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2015, 18:31
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: 2015 Dashboard - How to use Custom Tab

It's for your use only.
You can change everything, nothing, or replace it entirely with something else.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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:11.

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