Go to Post ...the list of the things we want to get done in the off-season has grown to such a length that I have to take off my shoes and socks to count them...and I think I may need to grow a few more toes soon. - StephLee [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 15-03-2012, 20:39
Suitster's Avatar
Suitster Suitster is offline
Registered User
AKA: Ethan Pellittiere
FRC #3951 (SUITS)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Honeoye
Posts: 79
Suitster is on a distinguished road
Re: Creating an indicator for encoder on DS

you need to do two things

First: in the Dashboard Data Vi, obtain the data from the encoders, be it from a global variable or what. Bundle the data (you can add more in later) and use the "flatten to string" command (I can't remember where it is, but it turns a bundle into binary) connect the string to the vi "send user data high", which sends it to the dashboard. After that, right click the bundle you flattened and select create constant. Copy the constant and save it for later
Second: you need to make a custom dashboard, which can be done in the project viewer. In the block diagram there is a disabled box that has an item (unflatten from string) in it (I am doing this from memory) what you need to do is create a constant for one of the terminals on the left, use the one you copied in the first part. Connect it to the terminal and the output should be the same bundle you inputted in part one. Unbundle the bundle and use the wires to connect to a gauge or whatever it is that you choose. To save the Dashboard, go to the dashboard project screen and build it to a location. Name it Dashboard.exe and replace the original dashboard, and all the files in it in C:\Program Files\FRC Dashboard.

P.S. you can also add crosshairs in the custom dashboard by adding lines, under decoration.
P.P.S Be careful with connecting those encoders to the shooter wheel. Many, many people fried their encoders from them not being able to handle throwing wheel speeds.

Last edited by Suitster : 15-03-2012 at 20:52. Reason: accidently hit post
Reply With Quote
  #2   Spotlight this post!  
Unread 15-03-2012, 21:34
nickcvet89 nickcvet89 is offline
Registered User
FRC #1228 (RoboTribe)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2003
Location: Rahway,NJ
Posts: 99
nickcvet89 will become famous soon enough
Send a message via AIM to nickcvet89
Re: Creating an indicator for encoder on DS

Can I just follow the tutorial given here:
https://decibel.ni.com/content/docs/DOC-14704
only instead of a gyro, I replace with an encoder?

Also since the encoder "Get VI." outputs the distance in inches, how can get the encoder to output rpm
__________________

Last edited by nickcvet89 : 15-03-2012 at 23:18.
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 22:12.

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