Go to Post You miss 100% of the shots you don't take - Steven Donow [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 04-03-2011, 07:42
tolefanjh tolefanjh is offline
Registered User
FRC #1585
 
Join Date: Feb 2011
Location: Manchester, NY
Posts: 8
tolefanjh is an unknown quantity at this point
Adding Dashboard Readouts?

On the dashboard we used to be able to tap into the standard display numbers for the analog readouts and then have them display an additional graph or meter. This year this doesn't seem to work. Has anyone been able to figure out how to display information from the analog readouts into a different format on the drivers station dashboard? We have a voltage readout from a pendulum and I have been trying to convert this into an angle to show how far from vertical our arm is, however, everything I've tried doesn't work. I've also talked to other programmers here at the Finger Lakes Regional who are having the same problems.

Any thoughts would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-03-2011, 01:17
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Adding Dashboard Readouts?

this is a fairly good video on how to do it. I've heard good things about frcmastery.com also.

Basically what you have to do is:
  • Edit the Dashbaord Data vi to send the data you want (wire stuff into the cluster that goes into the flatten to string and then send low priority data)
  • Go to the startup window and click the create new dashboard project button. Open up dashboard main.vi
  • In dashboard main, take the same cluster as in your dashboard data vi (from the robot project) and put it in place of that ginormous cluster off to the left. Yes, the one going into unflatten from string.
  • Follow the line coming out of the "value" output of the unflatten from string vi. It should go to an unbundle/unbundle by name. Add all the indicators you want to the output of that unbundle.. it should be modified with your new data (magically).
  • Rearrange the Indicators on the front panel
  • Go to the dashboard project's project manager. Open up the build specifications, right click on the FRC PC Dashboard, and select build.
  • When building is done, take note of where it was placed.
  • Move the Dashboard.exe file to C:\Program Files\FRC Dashboard\ (on the classmate, obviously). Delete/rename the old dashboard.exe
  • Move to the Driver account and make sure it all worked.

Oops, I said "basically"

The data flow of the dashboard data should be:
(In robot project) Whatever -> Bundle -> Flatten to String -> Send Low Priority Dashboard Data -> (Automatically) (In dashboard project) Receive DS Packet -> Unflatten from String (With the same cluster wired to it) -> Unbundle -> Indiactors.

Yes, it's pretty involved.

Alternatively, if all you want to do is take the already-at-the-driver-station analog input and multiply it by something, you could just open up dashboard main (you still have to make the project), find the indicator, and add the multiplying stuff. Then build and put it on the correct spot.

Last edited by WizenedEE : 05-03-2011 at 01:19.
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 09:34.

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