![]() |
Safety Button for Firing Cannon
We have built a four barrel pneumatic t-shirt cannon this year in robotics class that we need to program. We can build buttons for each solenoid to fire but really what we want to do is have a safety button assigned for each barrel. Example: While holding button six down and pulling the trigger on the joystick cannon one goes off. Then release button six and press button five down while pulling the trigger to shoot cannon two. This will prevent any accidental firing of the cannons by accidentally hitting a button. Can anyone screen shot us how to build something like this? Any help would be greatly appreciated.
|
Re: Safety Button for Firing Cannon
Quote:
There's lots of ways to implement this, but I would recommend this a structure like this: Code:
if (trigger == 1):Note: I realize this is the labview forum and I gave written code example, but I don't have labview on this computer. If this doesn't help and no one else chimes in, I'll see if I can find a computer that has it installed to build up real quick. |
Re: Safety Button for Firing Cannon
I think this is what you're looking for.
This code will only allow one solenoid to fire and both the fire and the cannon enable button must be pressed. ![]() |
Re: Safety Button for Firing Cannon
Regardless of which barrel is firing, don't be standing in front of ANY of them...::safety::
|
| All times are GMT -5. The time now is 20:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi