Go to Post Look, it's only August. You got approximately 6 months to enjoy your life until season starts. Enjoy it while it lasts... - Arefin Bari [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
  #4   Spotlight this post!  
Unread 05-02-2010, 10:37
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Joystick Button One-Shot (a.k.a. Rising Edge) Detection

Here's a code snippet (picture) that does what you want. You could put this in your loop, or you could make it a subVI. If you make it a subVI to be used in multiple places, be sure to make it a reentrant subVI. That way it will allocate separate memory for each call. To make a subVI reentrant go to File>>VI Properties>>Execution and choose Reentrant execution.
Attached Thumbnails
Click image for larger version

Name:	joystick once true.jpg
Views:	273
Size:	19.7 KB
ID:	8524  
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
Ellipse Finding/Edge Detection Example Code? brianc217 NI LabVIEW 3 20-01-2010 08:57
Full solenoid controll off of one joystick button? m3rc1l3ss NI LabVIEW 2 11-02-2009 02:06
joystick button furiousgeorge Programming 5 07-02-2009 15:57
Ganged Interrupt Edge Detection cprogrammer Programming 8 01-02-2008 10:52
More than one joystick from one port Jmoo Programming 3 26-06-2003 18:01


All times are GMT -5. The time now is 22:35.

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