![]() |
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. |
Re: Full solenoid controll off of one joystick button?
1 Attachment(s)
Here's a VI that I puzzled out over a few days - it takes a lot longer when you're somewhat new to a language. I'm sure there are more efficient ways, but this works.
The single input is a boolean - it could be from a joystick button or anything else - and the output toggles when the input changes from zero to one. btw its meant to be used as a subVI. -jonathan |
Re: Full solenoid controll off of one joystick button?
Wow, thank you, that is the exact thing that I was trying to figure out how to do. I will test this out tomorrow
|
| All times are GMT -5. The time now is 10:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi