LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I return and output if a comparison is true once?

I am trying to make a game.  I want to use an if statement.  For instance "if my ball has crossed over position x then produce a constant c1" but when the ball moves out of position x I want that constant to still be there.  Any ideas?
0 Kudos
Message 1 of 2
(2,397 Views)

Have a look at the "In Range and Coerce Function" block.(Whoops missed the point)

 

Ok try a boolean latch to determine if it has "crossed over" previously.

Message Edited by Hornless.Rhino on 12-04-2010 11:31 AM
0 Kudos
Message 2 of 2
(2,382 Views)