Go to Post This is definitely the best FRC parody of an FRC parody I have seen. - Jared Russell [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 29-01-2015, 17:46
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Adding a sensor reading to the dashboard

How would I add a numeric indicator to the dashboard that would read the distance from an ultrasonic sensor? I can program the sensor itself I just have no idea how to make a visible reading for it.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2015, 18:07
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Re: Adding a sensor reading to the dashboard

Or do I even have to change/add anything for the dashboard? If I don't I think I figured out how it works
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2015, 19:38
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,795
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: Adding a sensor reading to the dashboard

The default project has examples in Teleop.vi
These are all writes that are sending values to the Dashboard.
  • RobotDrive Motors
  • Joystick 1/Axes
  • Joystick 1/Buttons
  • Joystick 2/Axes
  • Joystick 2/ Buttons
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2015, 11:49
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Exclamation Re: Adding a sensor reading to the dashboard

Quote:
Originally Posted by Mark McLeod View Post
The default project has examples in Teleop.vi
These are all writes that are sending values to the Dashboard.
  • RobotDrive Motors
  • Joystick 1/Axes
  • Joystick 1/Buttons
  • Joystick 2/Axes
  • Joystick 2/ Buttons

Ok but how would I make, like an ultrasonic sensor appear on the dashboard, I've been trying to make it work with a custom dashboard but I have no idea what I'm doing on the custom dashboard, any ideas?
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2015, 12:14
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Adding a sensor reading to the dashboard

Use SD Write Value to send the value to the dashboard. It will show up under the Variables tab without having to change it. If you want it displayed, create an indicator with the same name as you gave the SD Write Value.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2015, 12:19
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,795
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: Adding a sensor reading to the dashboard

Here's an example:
The left screenshot is of Periodic Tasks in the default robot code.
The right screenshot is of the default Dashboard front panel and block diagram.
Attached Thumbnails
Click image for larger version

Name:	WriteNumber.jpg
Views:	29
Size:	44.8 KB
ID:	18071  Click image for larger version

Name:	DisplayNumber.jpg
Views:	27
Size:	165.5 KB
ID:	18072  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 31-01-2015 at 12:22.
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2015, 12:52
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Exclamation Re: Adding a sensor reading to the dashboard

Quote:
Originally Posted by Mark McLeod View Post
Here's an example:
The left screenshot is of Periodic Tasks in the default robot code.
The right screenshot is of the default Dashboard front panel and block diagram.
Actually wait, how would I wire the indicator in the custom dashboard?
Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2015, 12:58
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,795
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: Adding a sensor reading to the dashboard

No wiring is actually required.
Just the name has to exactly match.
You can see "My Number" on the bottom right of the Dashboard block diagram and that's all that is needed.

If you want to, you can explicitly read the value (just the opposite of the Write) and wire the read to the indicator.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 31-01-2015, 13:01
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Re: Adding a sensor reading to the dashboard

Quote:
Originally Posted by Mark McLeod View Post
No wiring is actually required.
Just the name has to exactly match.
You can see "My Number" on the bottom right of the Dashboard block diagram and that's all that is needed.

If you want to, you can explicitly read the value (just the opposite of the Write) and wire the read to the indicator.
But in the dashboard, whenever I create an indicator in the custom tab, it makes it in the VI's of the custom dashboard and gives me an error unless I wire it to a control, or am I just doing this completely wrong?
Reply With Quote
  #10   Spotlight this post!  
Unread 31-01-2015, 13:02
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Re: Adding a sensor reading to the dashboard

Quote:
Originally Posted by Mark McLeod View Post
No wiring is actually required.
Just the name has to exactly match.
You can see "My Number" on the bottom right of the Dashboard block diagram and that's all that is needed.

If you want to, you can explicitly read the value (just the opposite of the Write) and wire the read to the indicator.
Wait, nevermind, I might be the stupidest person to attempt to program in labview, I was getting a different error and I thought it related to that, so nevermind, thank you so much for the help!!!
Reply With Quote
  #11   Spotlight this post!  
Unread 31-01-2015, 12:35
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 69
RoboBucs is an unknown quantity at this point
Re: Adding a sensor reading to the dashboard

Quote:
Originally Posted by adciv View Post
Use SD Write Value to send the value to the dashboard. It will show up under the Variables tab without having to change it. If you want it displayed, create an indicator with the same name as you gave the SD Write Value.
Awesome! Thank you both very much!
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 08:52.

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