LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

From a continuous true signal to one switch of a switch

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!

0 Kudos
Message 1 of 6
(2,946 Views)

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

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 2 of 6
(2,922 Views)

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.

 

Download All
0 Kudos
Message 3 of 6
(2,910 Views)

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

 




To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 4 of 6
(2,890 Views)

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.

 

0 Kudos
Message 5 of 6
(2,865 Views)

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

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 6 of 6
(2,853 Views)