Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Adding Dashboard Readouts? (http://www.chiefdelphi.com/forums/showthread.php?t=93192)

tolefanjh 04-03-2011 07:42

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.

WizenedEE 05-03-2011 01:17

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.


All times are GMT -5. The time now is 09:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi