
29-01-2009, 23:05
|
|
Registered User
 FRC #2276 (S.T.A.R.S)
Team Role: Engineer
|
|
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
|
|
|
Re: 2 Joysticks, 2 Triggers, 1 relay, 1 problem
Quote:
Originally Posted by Burmeister #279
i'm not sure if this is the actual problem, and as i don't have labview on this computer, i have no screen shots, however, there might be a problem if it's confusing itself due to both being pressed. if you have a case structure around the entire area where you deal with the buttons, and then wire an XOR gate [Boolean pallet] into the case selector, and both buttons into the XOR. this will eliminate any problems with both buttons being pressed. after that, in the true portion of the case, have a second case structure to find the state of the first button. if it's true, then set the value of the relay you are changing, if it is false, use another case structure inside of the false case of the previous one to check for the second button.
AIM: Burmeister 279
I changed my mind and my computer and here's my example of what to do. the XOR is a special logic gate that makes only lets it work if one and ONLY one input is true.
need any more help : burmeister.twosevennine@gmail.com subject: programming help
|
Dude not to be rude but you need to better explain things. That was the most confusing thing i read all day.
__________________
|