Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Passing Globals through to the dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=91569)

jmanela 12-02-2011 08:30

Passing Globals through to the dashboard
 
Is it possible to pass globals from the robot project to the dashboard?

Alan Anderson 12-02-2011 08:45

Re: Passing Globals through to the dashboard
 
It's possible to send any information you want through to the dashboard. In LabVIEW, it's extremely easy to add another element to the dashboard data cluster in the robot code, and it's just as easy to retrieve that element from the data stream in the custom dashboard itself.

baronep 12-02-2011 09:12

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

jmanela 12-02-2011 11:23

Re: Passing Globals through to the dashboard
 
Quote:

Originally Posted by baronep (Post 1021175)
...
Hope this helps,

baronep


Thanks

Doug Norman 13-02-2011 07:15

Re: Passing Globals through to the dashboard
 
Also, from the LabVIEW Getting Started Window, check out Tutorial 7: Integrating Examples into Robot Code. Part 2 of this tutorial shows what's needed on the robot side to send data. Part 3 shows what's needed on the Dashboard side to read the data.


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

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