Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   reading and writing dashboard data (http://www.chiefdelphi.com/forums/showthread.php?t=113380)

bspymaster 12-02-2013 21:43

reading and writing dashboard data
 
Hello.
I am currently working on the dashboard project for our team for the tournament. I am trying to send a string variable from the dashboard program to the CrIO to tell the robot which autonomous mode to run. I tried using the Smart Dashbord "SD Read String" vi in the robot code and using "SD Write String" in the dashboard, but it only sends the information to the code once, if the dashboard was turned on before the robot code was deployed. It never updates afterwards, no matter what I do, unless I redeploy the code. Both parts of the code are written inside of while loops. Any suggestions? Thanks.

Alan Anderson 12-02-2013 22:03

Re: reading and writing dashboard data
 
How are you changing the value of the string in the Dashboard?

bspymaster 12-02-2013 23:07

Re: reading and writing dashboard data
 
It is a dropdown string box (I forget what Labview calls it). the output from the control is a string. I'm plugging that string into a case structure in autonomous independent.vi.

Joe Ross 12-02-2013 23:20

Re: reading and writing dashboard data
 
Does it show up correctly in the variables tab of the dashboard? Is the control also in a while loop, or just the write string vi?

bspymaster 12-02-2013 23:35

Re: reading and writing dashboard data
 
I never thought to check the variables tab. Good idea! The entire thing (including the control) is in the while loop. in the CrIO code, the entire thing is in a loop as well.

Alan Anderson 13-02-2013 00:08

Re: reading and writing dashboard data
 
You probably don't need to do an explicit SD Write String with the control's value. Just putting a disconnected control on the Operation tab of the Dashboard is enough to share it as a SmartDashboard variable.


All times are GMT -5. The time now is 12:15.

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