View Single Post
  #3   Spotlight this post!  
Unread 12-02-2011, 09:12
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Re: Passing Globals through to the dashboard

First you have to create a new dashboard project just as you would a robot project. In the project explorer you should have a typedef file. This file basically defines what information is passed in each bundle between the robot and dashboard. You need to have identical typedef files on both the dashboard project and robot project. In order to add the global to the dashboard you will have to add controls that are exactly the same as the front-panel of your global variable to the typedef front-panel. Once you've done this (on both projects), you can switch to block diagram view and you should see an extra input on the bundle block, this is where you plug in your global variable. Similarly, you should see an output on the unbundle block in the dashboard project. Then, you have to replace the existing dashboard executable with the one that you made (you have to build it first). I don't exactly remember how you transfer the dashboard project to the classmate but it is something along the lines of replacing the existing dashboard executable with the one generated when you build the project.

Hope this helps,

baronep
Reply With Quote