11-17-2009 05:00 AM
Lo guys, here's a simple question: How can I turn on one of two LEDs at a time considering the situation at hand: (btw X=RED and O=GRN)
1) RED off, GRN off, we press X to turn on RED
2) RED off, GRN off, we press O to turn on GRN
3) RED on, GRN off, we press X, message "RED is already on"
4) RED off, GRN on, we press O, message "GRN is already on"
5) RED on, GRN off, we press O, GRN remains off, message "RED is on"
6) RED is off, GRN is on, we press X, RED remains off, message "RED is on"
I really tried everything I know
Thanks in advance, KUDOS to everyone that helps, i'd rather V8.2 shall you update the attached VI
Solved! Go to Solution.
11-17-2009 05:38 AM
I did it, for only "Press X" button.
The other is similar (another event case)
11-17-2009 05:51 AM
Firstly thanks for the help
i'm gonna try this at home and if there isnt anything wrong then its a solution !!
second of all, IF somebody would like to and something, let me rephrase the situations in English:
How can I switch ONE of two events at a time?
11-17-2009 05:55 AM
Hi redghb,
Are you sure this requirement is correct? I guess there is a conflict in point no. 5 and 6? Could you read it again and confirm that its correct?
11-17-2009 05:57 AM
rebghb wrote:
How can I switch ONE of two events at a time?
Use a radio buttons in controls palette>Boolean
11-17-2009 06:13 AM
11-17-2009 06:21 AM
11-17-2009 06:40 AM
Hi rebghb,
I think your line 6 should be:
6) RED is off, GRN is on, we press X, RED remains off, message "GRN is on"
I've attached a solution. I hope it's helpful. There are always many ways to solve a problem in LabVIEW.
steve
11-17-2009 03:06 PM
5) RED on, GRN off, we press O, GRN remains off, message "RED is on"
6) RED is off, GRN is on, we press X, RED remains off, message "RED is on" shold be GRN
in other words, ur playing tic tac toe, if there's already an X or an O, you cannot just draw over the existing symbol... this is the point
11-17-2009 03:13 PM
haha muks, ur name says it all 😄 seems u like mocking ppl aroung (just kidding btw) and Vsh you got there before me, ur right about the grn/red thingie, anyway im very very very ..... 10
d . ( newbie)
_____
10
dx
hehe