12-04-2013 10:12 AM
Hello,
This is my problem. I making a tennis program in labview, and when a game is finished, my output(one of the 2 LED's) is continuous true (P1 wins the game or P2 wins the game).
For the set I've wrote a subVI, with as inputs for the won games a switch ('switch until released').
But when one game is finished, my SETscore automatically springs to 6-0 or 0-6.
Probably because my input signal in the set subVI stay true.
I search the whole day for a solution, but I can't find it.
Asked for help!
12-04-2013 02:25 PM
Your question is vague, no one can effectively help you unless you show what you have done (attach your VI(s) instead of a picture).
Cameron
12-04-2013 04:17 PM
The program is too big to copy everything, but I made 2 pictures with the problem. I hope these are enough to understand.
The first picture is a part of the main.vi. I draw narrows at the problems.
You see 2LED's (P1 wins game/P2 wins game), one of these lights up when they won the game, and they remaines lit (stay true), until a next game is end.
Also you see the wires to the subVI set (narrows at the bottom).
In the second picture (= subVI set), You see that P1 wins game/P2 wins game are both a switch(Option: 'switch until released').
I must remark that the subVI set works completely, so that's not the problem.
The problem is that when I run the main.vi, after winning one game, the setscore becomes immediately 6-0 or 0-6 instead of 1-0 or 0-1.
I think that the problem is that one of the LED's keeps lightning (=> stay continuous true), so that the switch in the subVI doesn't go ON -> OFF, but stays ON, so that the setscore immediately springs to 6-0 or 0-6 instead of 1-0 or 0-1. I can't solve the problem.
I hope it's a little bit clearer now and someone can help.
12-04-2013 07:57 PM
You misunderstood my directions, so I put the important part of my post in red and bolded it so you wouldn't miss it again. Those incomplete pictures make it a lot more difficult to help.
@camerond wrote:
Your question is vague, no one can effectively help you unless you show what you have done (attach your VI(s) instead of a picture).
Cameron
12-05-2013 04:23 AM
Aaah okay, I'm sorry.
Is there a way to send you this privately? Because It's a school project and I don't want someone copy this project this year or one of the next years.
12-05-2013 08:17 AM
Sorry, I don't do this in private, if I can be useful to anyone, I want it to be available to others later who have similar problems, and however their problem is solved (through me or not), I'd expect the answer to be posted. To me, it's a community here, not a one-to-one contract.
Of course, if anyone else wants to help you privately, it's their decision based on their understanding of these forums.
Cameron