Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Unable to read values from the dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=134077)

Luid101 06-02-2015 14:42

Unable to read values from the dashboard
 
2 Attachment(s)
Hey
I am programming our teams robot to do vision tracking from the dashboard. I have the vision working but I can't figure out how to send integer variables for scale, left and right etc.

from the dashboard to the robot. I have tried following examples from labview but its not working.

Right now I have smart dashboard controls in the robot code that are supposed to get values from indicators on the dashboard. I have triple checked that the names on the indicators match the names i used in the smart dashboard controls.
At this point i have no idea what to do.

Mark McLeod 06-02-2015 14:52

Re: Unable to read values from the dashboard
 
That looks okay on the robot side.

What does your Dashboard code look like and where is it placed on the Front Panel too?

Luid101 06-02-2015 15:35

Re: Unable to read values from the dashboard
 
1 Attachment(s)
Quote:

Originally Posted by Mark McLeod (Post 1439365)
That looks okay on the robot side.

What does your Dashboard code look like and where is it placed on the Front Panel too?

Here is the code in the dashboard.
Its placed in the custom tab in the vi.

Alan Anderson 06-02-2015 16:08

Re: Unable to read values from the dashboard
 
If I'm reading the Dashboard magic properly, only unwired controls or indicators become Smart Dashboard variables automatically. You can either 1) remove the wires and move them to Local Variables to set the front panel value "remotely", or 2) add SD Write Number functions to set the SD values explicitly.

Luid101 06-02-2015 16:59

Re: Unable to read values from the dashboard
 
Quote:

Originally Posted by Alan Anderson (Post 1439411)
If I'm reading the Dashboard magic properly, only unwired controls or indicators become Smart Dashboard variables automatically.

Really!? Thanks for the info. That would have been a good 'hint' to add in the tutorials.

Quote:

Originally Posted by Alan Anderson (Post 1439411)
2) add SD Write Number functions to set the SD values explicitly.

I tried using SD write number functions to set the indicators(SD values). I hooked up a slider to a write function but the value on the indicators didn't change.

Quote:

Originally Posted by Alan Anderson (Post 1439411)
1) 1) remove the wires and move them to Local Variables to set the front panel value "remotely".

I am not sure I completely understand this part. So should i make the front panel values into local variables or should i update the front panel values with local variables. Doesn't the latter still mean that the front panel variables are still wired?

I am trying to make sure i have a working answer before Monday.

In the mean time is there any other way to send values from the dashboard to the robot?


All times are GMT -5. The time now is 10:29.

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