Go to Post At this point in build season, I'm thinking that whatever type we can get built and working is the best type, by far! - MrForbes [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 01-03-2012, 10:19
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Getting data to the dashboard

Introduction - I have a motor that speed is controled by the throttle. I have it hooked up to a global vartiable and i tired to add it in to the dashboard, but it just reads 0. I made sure im reading and writing them correctly.

Question - Is there a extra step that needs to be taken?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-03-2012, 12:02
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: Getting data to the dashboard

The robot and the Dashboard are separate programs running on separate computers. In order for the Dashboard to display a value from the robot, you will need to send that value from the robot through the "high priority" dashboard data stream, and retrieve it in the Dashboard.

Instructions for doing this are in Tutorial 7—Integrating Examples into Robot Code.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-03-2012, 12:10
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Re: Getting data to the dashboard

Steve, I hope you are Ok if add to your question...

I did the tutorial Alan suggest, worked fine. I would like to eliminate some info/controls not to dash, TCP error night mares in past...
When I delete Analog/ Digital on dash, of course get errors in code, need clean up.

Alan - others
Can I just delete control and try and eliminate errors in VI until they are gone,
or is there a better method? Do not want to create problems by trying to prevent them, want limited info sent back if not needed.

thanx
mark
Reply With Quote
  #4   Spotlight this post!  
Unread 01-03-2012, 13:40
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Getting data to the dashboard

Quote:
Originally Posted by mbone206 View Post
Can I just delete control and try and eliminate errors in VI until they are gone,
or is there a better method? Do not want to create problems by trying to prevent them, want limited info sent back if not needed.

thanx
mark
To limit info sent back if not needed, you will have to modify the Dashboard Data Type Def on both the send (cRIO) and receive (dashboard) side. Plus all the code now that does not match (errors) just to save a dozen or so bytes.

NOT worth the time and head ache and possible data mis-match you are sure to introduce.

It is only a total of 97 bytes. Even if you make it smaller, it most likely will still be sent in the data packet of the same size with most of the packet made up of zeros.
__________________
Omar
Reply With Quote
  #5   Spotlight this post!  
Unread 01-03-2012, 18:32
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Re: Getting data to the dashboard

Hi Omar

2 years ago had a lot of TCP errors during match, most teams said they had to modify the dashboard code to send nothing back to eliminate these errors?

Also, need more room on dashboard for other indicators for drivers, can hide controls to make more room? having trouble increasing size of dash, not using class mate as driver station, have a bigger screen laptop

thanx
Mark
Reply With Quote
  #6   Spotlight this post!  
Unread 01-03-2012, 21:02
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: Getting data to the dashboard

Quote:
Originally Posted by mbone206 View Post
Also, need more room on dashboard for other indicators for drivers, can hide controls to make more room?
One of the first modifications our programming team made to the Dashboard was to add a large tab control to the right and put all the existing "debug" indicators in a tab named "raw info". All the really useful custom indicators are in the tab named "game info". Everything that was there in the default dashboard is tucked neatly out of sight, but is only a mouse click away when necessary.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-03-2012, 10:26
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Re: Getting data to the dashboard

I have found an excellent tutorial, http://www.thesciencedude.com/teachi...20Tutorial.pdf
Reply With Quote
  #8   Spotlight this post!  
Unread 02-03-2012, 19:57
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Re: Getting data to the dashboard

I have found a tutorial on exactly what i wanted thanks.
Reply With Quote
  #9   Spotlight this post!  
Unread 03-03-2012, 08:42
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: Getting data to the dashboard

I have never seen or had a report filed about dashboard not working on the field. There tends to be lots of helpful advice about deleting code or working around the field. I find that most of it is well-intentioned, but misleading. For example, -- "I've heard that having your driver stand with their legs crossed will speed up the communication between the robot and the field -- something to do with their body acting as an antennae and crossing the legs working like a twisted pair cable ... anyway, everybody is doing it!". Feel free to try it, but pay attention to the source, and when possible, test the statements for yourself.

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:05.

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