Go to Post Just wondering what types of food you have been living off of while working on your robot? Our team has had pizza almost 3-4 times a week or more. Just wondering. SGS DRAGONS - sgsdragons [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 30-01-2012, 20:37
stintzi stintzi is offline
Registered User
FRC #3290
 
Join Date: Jan 2012
Location: canada
Posts: 13
stintzi is an unknown quantity at this point
Send two pieces of data to dashboard

I am trying to have two different pieces of data show up on the dashboard. I already have a numerical indicator for my range finder using the High Profile Data. I've gone through and understood the tutorial for getting data to show up on dashboard, but how do I display two pieces? I want to hook my gyro to display onto the dashboard.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2012, 08:08
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Send two pieces of data to dashboard

I had the same issue about two weeks back. Here's what you need to do.

1. Flatten to String the Rangefinder output.
2. Flatten to String the Gyro output.
3. Bundle them using the Bundle function located somewhere under the Programming palette.
4. Flatten to String the output of the bundle.
5. In your Dashboard, place an Unflatten from String down near the High User Data output. In the "type" node, wire something which tells the Unflatten from String what it's going to be taking in. This'll take some experimenting, as it did for me.
6. Wire the User Data High to the Unflatten from String, and wire the output to an Unbundle.
7. Wire each of your Unbundled data sources to an Unflatten from String, with a type constant of 0.
8. Wire the outputs from these Unflatten from String's to whatever you want.

Good luck!
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2012, 13:23
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Send two pieces of data to dashboard

A simpler solution is to bundle all of the data you want using a Bundle and then flatten it all to string. No need to individually flatten each piece of data.

To unbundle it, you can create a Bundle with the same types of data or a Constant, and use it to unflatten from string.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
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:24.

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