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.
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.
Well I’m a pretty rookie programmer so I really don’t understand how to do this. Can you give me an example.
Tutorial 7 on the LabVIEW getting started window shows how to send data to the dashboard.
The way we are doing this is:
-
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.
-
Update the Dashboard Data Typedef with the variables we want to pass to the Dashboard.
-
Read data from global variables and store into the Dashboard Data Typedef in Build Dashboard Data VI.
-
In the Dashboard Project, read the data and pass to Indicators