Go to Post FIRST has given thousands of young people (like me) a head start in life because it teaches honesty, integrity, and an appreciation of other people's hard work. - Gabe [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 10-02-2009, 21:53
m3rc1l3ss m3rc1l3ss is offline
Registered User
FRC #1178 (DURT)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Missouri
Posts: 14
m3rc1l3ss is an unknown quantity at this point
Full solenoid controll off of one joystick button?

I have spent a few hours trying to figure out this problem, and am now thinking it best to ask for help. My problem is this: How to fire both sides of a solenoid with consecutive clicks of a single button. So far I have only been able to make it so one button fires a side of the solenoid and a second button fires the other side. At the moment, my team is using the basic framework, but there are plans to switch over to the advanced prior to ship date.

I had been thinking about using a case structure for this, until I realized that if a joystick button was feeding in, it would only read true as long as the button was depressed. If there is a way to just switch a case to true when a button is pressed and then go to false when depressed again, I know what to do from there.

Last edited by m3rc1l3ss : 10-02-2009 at 23:04.
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
joystick button furiousgeorge Programming 5 07-02-2009 15:57
How do I program a relay to turn on and off by pressing a button on the joystick? eweathers NI LabVIEW 4 28-01-2009 22:34
Programming a joystick button... programmr Programming 2 05-01-2009 16:13
More than one joystick from one port Jmoo Programming 3 26-06-2003 18:01
Two Pneumatics off one Double-Solenoid Valve GrahamS314 Pneumatics 5 24-02-2003 23:49


All times are GMT -5. The time now is 10:42.

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