Go to Post When your driver is the "world record holder in Mario Cart" you know it's going to be exciting for the students and stressful for the pit crew. :ahh: - lovelj [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 18-01-2009, 20:18
ShotgunNinja's Avatar
ShotgunNinja ShotgunNinja is offline
Programming Mentor, FRC 4247
AKA: Nicholas Iannone
FRC #4247 (CougarBOTS)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Milwaukee, WI
Posts: 160
ShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the roughShotgunNinja is a jewel in the rough
Get Button subVI for LabVIEW

Hey all,

I was messing with LabVIEW and found that there was a Joystick Get and a Joystick Get Axis subVI, but no Joystick Get Button. So I made one. Please let me know if there are any errors, I can't test it right away. This is based off of the Joystick's Get.vi that is included with LabVIEW, and it basically serves to eliminate the hassle of using a cluster element selector block. Enjoy, and give feedback please!

P.S. - The "Index" pin is where you'd wire up an enumerated button selector. It's an unsigned byte value, with enumerated items "Button 1" ... "Button 11" and "Invalid". You could also just put in any unsigned integral, though; it should cast down properly. The output is a single boolean, indicating whether the button is pressed or not. Also, keep in mind that Button 1 (the trigger) is enumerated to 0, not 1.
Attached Files
File Type: zip Get Button.zip (9.4 KB, 74 views)
__________________
Team #2970 Alum
Team #1652 Alum
2006: School Mascot for Team 1652
2007-2008: Programmer for Team 1652 (Robot Mafia)
2009: Programmer on Team 1652 (Robot Mafia), Programmer on Team 2970 (eSchool eBots)
2010-2016: Volunteer, Wisconsin Regional
2017: Programming Mentor, FRC 4247 (CougarBOTS, Obama SCTE, Milwaukee, WI)
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
Labview SubVI return and continue looping skidmarks NI LabVIEW 5 06-01-2009 07:18
Get pixel color (Labview) kamocat NI LabVIEW 4 24-08-2008 02:28
Reset Button for Vex RC's irishninja FIRST Tech Challenge 5 18-06-2006 15:56
Where can I get LabVIEW? Hershey LabView and Data Acquisition 1 21-01-2006 14:38


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

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