Go to Post I wish I had the blissful self-confidence of some of our students, even if it is a little delusional. It's all part of the process. - John Neun [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 12-01-2009, 16:21
Pneumaticsman's Avatar
Pneumaticsman Pneumaticsman is offline
Registered User
AKA: Mitch guzman
FRC #1566 (Ammoknights)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Idaho
Posts: 69
Pneumaticsman will become famous soon enoughPneumaticsman will become famous soon enough
Send a message via MSN to Pneumaticsman
Question buttons in LabView

in LabView, my team is trying to figure out how to use buttons in LabView. We have the button pallet opened but we can't figure out how to connect a joystick to the button pallet to get an input on whether or not the button has been pressed

Thanks
__________________


be prepared for the unexpected
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2009, 16:43
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,587
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: buttons in LabView

The buttons on your joystick have nothing to do with the buttons on the button palette in Labview. You should only be using buttons on your labview front panel for testing purposes or to represent inputs into a subVI.

To access the buttons from the joysticks, you need to use the "joystick" functions in the block diagram. If you're using the v2 update, these are located in the following sub menu of the function palette: "WPI Robotics Library |> DriverStation |> Joystick"

There are various functions there for opening, closing, and reading the values of joysticks. Note that they do not need any buttons defined on the front panel in order for them to work.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2009, 17:09
Pneumaticsman's Avatar
Pneumaticsman Pneumaticsman is offline
Registered User
AKA: Mitch guzman
FRC #1566 (Ammoknights)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Idaho
Posts: 69
Pneumaticsman will become famous soon enoughPneumaticsman will become famous soon enough
Send a message via MSN to Pneumaticsman
Re: buttons in LabView

O.K. we'll try messing around with the code and see if we can get it working.

Thanks
__________________


be prepared for the unexpected
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2009, 17:42
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: buttons in LabView

http://www.chiefdelphi.com/forums/at...7&d=1229147060

The Joystick Get outputs two clusters that you can use Unbundle by Name with.
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2009, 18:14
TotalChaos's Avatar
TotalChaos TotalChaos is offline
Registered User
AKA: Austin
FRC #2837 (Freebird Robotics)
Team Role: College Student
 
Join Date: Apr 2008
Rookie Year: 2006
Location: Gilbert AZ
Posts: 112
TotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud of
Send a message via MSN to TotalChaos
Re: buttons in LabView

Pneumaticsman,

You could also check out THIS small tutorial I made on reading joystick outputs on my team's website. The tutorial was written about 2-3 weeks before this year's game was announced, so it's not specific to the cRio and this years framework.. But hey, knowledge is knowledge.

Good luck!

- Austin
__________________
The 39th Aero Squadron - Team 39! (Visit our website!)
Team Role: 3 Years as Driver - College Student/Mentor!


Freebird Robotics - On a 1 year hiatus! (Visit our website!)
Arizona 2009: Semifinalists! (69 and 498), Delphi "Driving Tomorrow's Technology" Award
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you program joystick buttons in LabVIEW? darkpheonix NI LabVIEW 10 13-04-2014 10:20
Buttons, Buttons and more Buttons (2006) Freddy Schurr Team Organization 11 14-12-2005 21:36
UI Buttons stephenthe1 Programming 4 21-03-2005 12:58
Buttons tatsak42 Computer Graphics 4 16-01-2004 14:21
buttons rosebud Electrical 11 12-01-2003 02:02


All times are GMT -5. The time now is 08:55.

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