You may possess me without penalty.
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 Yesterday, 17:04
Chieftainator1's Avatar
Chieftainator1 Chieftainator1 is online now
Registered User
AKA: Carson Ausra
FRC #5182 (The Chieftainators)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Dowagiac, MI
Posts: 7
Chieftainator1 is an unknown quantity at this point
Tachometer and Custom Dashboard Help?

Hello There! My Team and I are attempting to use an tachometer connected via DIO, to get the speed of our shooter's wheel, we've got a program we think will work, but we don't know how to display the counter number onto a dashboard i'm fairly certain that we need a custom dashboard but I've got no clue on how to set one up or use it with the driver station... Any help is appreciated!!
Reply With Quote
  #2   Spotlight this post!  
Unread Yesterday, 19:02
whitetail's Avatar
whitetail whitetail is offline
Registered User
FRC #5407 (Wolf Pack)
Team Role: Driver
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Philadelphia
Posts: 63
whitetail is an unknown quantity at this point
Re: Tachometer and Custom Dashboard Help?

What language are you programming in?
__________________
FRC Team 5407 -Driver, Programmer and Head Control Systems Engineer
2015 MAR Championship Rookie All Star Award
2015 MAR Hatboro-Horsham District Rookie All Star Award
2015 MAR Hatboro-Horsham District event Winner(Thanks 2590 and 2607)
2016 MAR Hatboro-Horsham District event Winner(Thanks 2607 and 1218)
Reply With Quote
  #3   Spotlight this post!  
Unread Yesterday, 19:16
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 674
Ari423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud of
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by whitetail View Post
What language are you programming in?
Judging by the fact that this is in the LabVIEW subforum, I'd venture to guess they use LabVIEW.


Sending values to the dashboard in LabVIEW is very easy. If you are using the default dashboard, use the Smart Dashboard Write vi to send the value to the name "DB/Slider 0". Then when the robot is running, open up the default dashboard and switch to the Basic tab and your number should be in the top number output. It gets a bit more complicated if you want to use a custom dashboard, but if all you need is that one number then that's not really necessary.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


Reply With Quote
  #4   Spotlight this post!  
Unread Yesterday, 20:11
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 180
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by Ari423 View Post
Judging by the fact that this is in the LabVIEW subforum, I'd venture to guess they use LabVIEW.


Sending values to the dashboard in LabVIEW is very easy. If you are using the default dashboard, use the Smart Dashboard Write vi to send the value to the name "DB/Slider 0". Then when the robot is running, open up the default dashboard and switch to the Basic tab and your number should be in the top number output. It gets a bit more complicated if you want to use a custom dashboard, but if all you need is that one number then that's not really necessary.
Are those values still connected in the default dashboard? Or am I just thinking of the default custom dash template?
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #5   Spotlight this post!  
Unread Yesterday, 21:04
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 674
Ari423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud of
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by flemdogmillion View Post
Are those values still connected in the default dashboard? Or am I just thinking of the default custom dash template?
IIRC the default dashboard has all the values on the Basic tab bound to their names (in one of the loops below the "don't touch this" line). I would check that, but my LabVIEW expired last year and since I'm not programming the robot anymore I've been too lazy to put in the new activation code. Someone can check my memory if you want to be sure.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


Reply With Quote
  #6   Spotlight this post!  
Unread Today, 09:50
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 180
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by Ari423 View Post
IIRC the default dashboard has all the values on the Basic tab bound to their names (in one of the loops below the "don't touch this" line). I would check that, but my LabVIEW expired last year and since I'm not programming the robot anymore I've been too lazy to put in the new activation code. Someone can check my memory if you want to be sure.
The default custom dashboard template no longer has them bound. They added a "dashboard simple" template, I'm not sure about that one, I've only ever used it once and I deleted the whole Basic tab.

Off topic: Have you ever used the VIremote app for iOS?
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #7   Spotlight this post!  
Unread Today, 10:48
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 674
Ari423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud of
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by flemdogmillion View Post
The default custom dashboard template no longer has them bound. They added a "dashboard simple" template, I'm not sure about that one, I've only ever used it once and I deleted the whole Basic tab.

Off topic: Have you ever used the VIremote app for iOS?
That's a shame! I liked being able to make simple dashboard displays using the default dashboard without having to change any code. I guess I should actually download the new LabVIEW and play around with it if I get some free time.

I have not used the VIremote app yet. Might be an interesting tool for debugging if setup and integration isn't too much of a hassle.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


Reply With Quote
  #8   Spotlight this post!  
Unread Today, 10:55
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 180
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by Ari423 View Post
I have not used the VIremote app yet. Might be an interesting tool for debugging if setup and integration isn't too much of a hassle.
It's not a debugging tool, it just lets you control a front panel from an iOS device, as well as get various data from the device. It works great with Google Cardboard.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #9   Spotlight this post!  
Unread Today, 11:01
Ari423's Avatar
Ari423 Ari423 is offline
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 674
Ari423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud ofAri423 has much to be proud of
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by flemdogmillion View Post
It's not a debugging tool, it just lets you control a front panel from an iOS device, as well as get various data from the device. It works great with Google Cardboard.
If I understand correctly, the app connects over wifi so it can't be used in competition. It could be used, however, to get data from the robot at home while debugging.
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)


Reply With Quote
  #10   Spotlight this post!  
Unread Today, 14:00
flemdogmillion's Avatar
flemdogmillion flemdogmillion is offline
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 180
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by Ari423 View Post
If I understand correctly, the app connects over wifi so it can't be used in competition. It could be used, however, to get data from the robot at home while debugging.
You are correct in assuming that it's not legal for competition, but nothing is better than an offseason VR driver station.

I'm pretty sure and Oculus VR has enough resolution to do a full VR dash rather than a simple dual camera display. But the Oculus takes away all the programming fun, since you (IIRC) can set it up as two displays and just run two separate default dashboards set to their respective cameras. Not only that, but you could set up the Oculus hand controllers as joysticks for driving.


Although Oculus is so much nicer, I still prefer VIRemote. It's so much more fun.
__________________
Team 4506: 2015-2016
Team 3007: 2017

Jack of all trades except C++ & Java
Reply With Quote
  #11   Spotlight this post!  
Unread Today, 14:35
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,782
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Tachometer and Custom Dashboard Help?

The easiest way to present a numeric number is to write to DB/String 0 through DB/String 9. Format the number, any way you, like to a string and write to the variables listed above.

If the range works, you can also write to DB/Slider 0 through 3. There are LEDs and buttons too.

Beyond that, you can make a custom DB. Controls placed in the Custom tab are still bound by name.

The difference between simple and default DB are ...
Default
---------
2nd camera - simple supports just one on the left pane
Test - allows you to view sensor and motor configuration, values, and experimentally modify many values.
Commands - Interactively fire a command for testing
Checklist - Display a text file and support checking them off as part of drive team procedure

Simple
--------
Missing the above features, but the diagram is considerably simpler, therefore a much better template for many to start with.

If you identify that binding or other features don't work, please bring it up.

Greg McKaskle
Reply With Quote
  #12   Spotlight this post!  
Unread Today, 15:28
Chieftainator1's Avatar
Chieftainator1 Chieftainator1 is online now
Registered User
AKA: Carson Ausra
FRC #5182 (The Chieftainators)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2016
Location: Dowagiac, MI
Posts: 7
Chieftainator1 is an unknown quantity at this point
Re: Tachometer and Custom Dashboard Help?

Quote:
Originally Posted by Ari423 View Post
Judging by the fact that this is in the LabVIEW subforum, I'd venture to guess they use LabVIEW.


Sending values to the dashboard in LabVIEW is very easy. If you are using the default dashboard, use the Smart Dashboard Write vi to send the value to the name "DB/Slider 0". Then when the robot is running, open up the default dashboard and switch to the Basic tab and your number should be in the top number output. It gets a bit more complicated if you want to use a custom dashboard, but if all you need is that one number then that's not really necessary.
We can't seem to find the "Smart Dashboard Write vi." Where would it be located?
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 15:28.

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