Go to Post Want the TL;DR of it? Keep it simple, effective, and easy to use. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2015, 14:42
Luid101 Luid101 is offline
Registered User
FRC #3949
 
Join Date: Dec 2014
Location: Canada
Posts: 17
Luid101 is an unknown quantity at this point
Unable to read values from the dashboard

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.
Attached Thumbnails
Click image for larger version

Name:	Vi in robocode.jpg
Views:	35
Size:	44.2 KB
ID:	18180  Click image for larger version

Name:	Dashboard.jpg
Views:	17
Size:	4.8 KB
ID:	18181  
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2015, 14:52
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2015, 15:35
Luid101 Luid101 is offline
Registered User
FRC #3949
 
Join Date: Dec 2014
Location: Canada
Posts: 17
Luid101 is an unknown quantity at this point
Re: Unable to read values from the dashboard

Quote:
Originally Posted by Mark McLeod View Post
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.
Attached Thumbnails
Click image for larger version

Name:	Vi in dashboard.jpg
Views:	28
Size:	264.2 KB
ID:	18184  
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2015, 16:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2015, 16:59
Luid101 Luid101 is offline
Registered User
FRC #3949
 
Join Date: Dec 2014
Location: Canada
Posts: 17
Luid101 is an unknown quantity at this point
Re: Unable to read values from the dashboard

Quote:
Originally Posted by Alan Anderson View Post
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 View Post
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 View Post
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?

Last edited by Luid101 : 06-02-2015 at 17:39. Reason: Just tested something and it didn't work.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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