Go to Post a robot that is broken shows that it has survived more than a robot that doesn't even have a scratch. - robot180 [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

 
 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #23   Spotlight this post!  
Unread 18-01-2009, 15:02
Booksy Booksy is offline
Registered User
FRC #1244 (Viking Robotics)
Team Role: Programmer
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Great White North
Posts: 97
Booksy will become famous soon enoughBooksy will become famous soon enough
Re: Labview Joystick Buttons...

Quote:
Originally Posted by team877 View Post
I would like to know how to do both!!! haha
You could use a case structure attached to the button, or one of those boolean selectors with the question mark.

For the case structure, you would just put the relay function in the C/S, then wire a constant to the input.
The boolean selector would be similar but smaller and simpler, and if you know what Im talking about, I'd use it.

Go here for how to use the relay function (as well as any other first function):http://decibel.ni.com/content/docs/DOC-2631
If you right click on the input node and select create->constant it will put an enum there with forward and reverse settings. Because it is an enum, the three states will be 0, 1, 2 for forward, reverse and off, I think (in no particular order, check the enum for the real values).

Hope that helps get you on your way. That should be enough to do both of those scenarios.
__________________
My favorite CD quote ever(taken out of context of course):
Quote:
Originally Posted by ttldomination
water would be hard to build
Reply With Quote
 


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 on a Attack 3 Joystick useing LABView morg102 NI LabVIEW 14 02-02-2010 23:28
buttons in LabView Pneumaticsman NI LabVIEW 4 12-01-2009 18:14
Buttons to Pins on Joystick yarb65 Electrical 1 24-08-2007 20:39
Assigning Joystick buttons.... archiver 2001 5 24-06-2002 00:59


All times are GMT -5. The time now is 13:14.

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