Go to Post If I'm going to mentor someone, I'm going to be involved in their life as a positive force. - Mechvet [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 24-01-2011, 21:18
OldBug OldBug is offline
Registered User
FRC #3167
 
Join Date: Feb 2010
Location: Philadelphia
Posts: 7
OldBug is an unknown quantity at this point
Need Help Sending Data to Dashboard

Hello all,

I'm trying to modify the dashboard .vi to display additional data from the robot, but I'm having difficulty figuring out how to modify the packet definition (on the dashboard end - we're using Java for the Robot code). In the "Dashboard Tutorial 2011" document, it says I need to modify Dashboard Datatype.ctl, but my project doesn't contain this file. Instead, I have a file called DStoPCPacketTypeDef.ctl, which only seems to contain digital data, although I can see single-precision floating point values in the cluster when I look at the Dashboard Main.vi back panel.

Am I just confused? Or do the instructions in the tutorial .pdf not exactly match what I'm supposed to do?

I've installed the update (FRCLabViewUpdate3.0).

Any ideas?

Thanks for your help!

-Kerry
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2011, 23:31
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,112
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: Need Help Sending Data to Dashboard

Dashboard Datatype.ctl exists in the robot project, but not in the Dashboard project. Instead of a datatype .ctl, the Dashboard uses a cluster constant by default. Adding to that constant is possible, but it's a bit tedious getting things in the proper nested subcluster locations.

Modifying the .ctl isn't quite as hard as modifying the constant, but if you're only going to be adding things once, it might not be worth the trouble to copy over the Dashboard Datatype.ctl and replace the existing cluster constant with something like a local variable. I'd just go ahead and add elements to the constant.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2011, 16:32
OldBug OldBug is offline
Registered User
FRC #3167
 
Join Date: Feb 2010
Location: Philadelphia
Posts: 7
OldBug is an unknown quantity at this point
Re: Need Help Sending Data to Dashboard

Alan - thanks! I am now able to send data back to the driver station and display it on the dashboard. This was exactly the information I needed!

-Kerry
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 08:26.

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