Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   View Sensor data on Dashboard.. (http://www.chiefdelphi.com/forums/showthread.php?t=102679)

Luiz12 12-02-2012 23:57

View Sensor data on Dashboard..
 
I connect my sonar and I loaded the sensor example onto my program and I can see the output when I run the Vi. But do I get the sensor output on the dashboard.

Alan Anderson 13-02-2012 00:16

Re: View Sensor data on Dashboard..
 
You have a couple of options. You can "print" the data to the User Messages window on the Driver Station. Or you can flatten the data into a string and pass it to the Set User Data Hi vi (found in the Driver Station palette), then modify the Dashboard to take the "high priority user data" string and unflatten it to match. The result can be fed to whatever indicator you want to place on the Dashboard's front panel.

Luiz12 13-02-2012 01:13

Re: View Sensor data on Dashboard..
 
Well I'm a pretty rookie programmer so I really don't understand how to do this. Can you give me an example.

Joe Ross 13-02-2012 11:38

Re: View Sensor data on Dashboard..
 
Tutorial 7 on the LabVIEW getting started window shows how to send data to the dashboard.

seg9585 13-02-2012 23:15

Re: View Sensor data on Dashboard..
 
The way we are doing this is:

1. Storing data we want on the dashboard to global variables (define the variables in Robot Global Data VI, then write to the data to these variables.

2. Update the Dashboard Data Typedef with the variables we want to pass to the Dashboard.

3. Read data from global variables and store into the Dashboard Data Typedef in Build Dashboard Data VI.

4. In the Dashboard Project, read the data and pass to Indicators


All times are GMT -5. The time now is 00:44.

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