LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

InRangeCompareFunction

Solved!
Go to solution

Can someone help me out with the compare function

 

If you run the VI and change the slider.

 

The Green will meet the White plot when White is greater than Red. If you keep increasing the White slider position, the Green will go until its maximum value of 1.


Now when you decrease the White Slider, i want it in a way that the Green plot should not decrease with white unless White is less than Red.

 

 

0 Kudos
Message 1 of 24
(2,980 Views)

Are you tring to make a square wave here. So you want the green to go to 1 when the white is greater that the red?

Tim
GHSP
0 Kudos
Message 2 of 24
(2,933 Views)

Here is an example of the square wave generator.

Tim
GHSP
0 Kudos
Message 3 of 24
(2,932 Views)

Tim

 

When my white plot is greater than 0.5, i would like my green plot to follow the White plot until it reaches maximum value of 1.

 

Now if you decrease the value of white plot, the green should not follow the white unless White is Less than Red.

 

I know its possible for you to confuse with the program but i think of no other way to explain.

 

Is there anything like an latch function which would latch my green plot when white is greater than 1 and unlatch it when white is less than Red, so that the green donot follow the white when you are decrease the slider position

 

0 Kudos
Message 4 of 24
(2,918 Views)

Here this does what you want.

Tim
GHSP
0 Kudos
Message 5 of 24
(2,911 Views)
Solution
Accepted by topic author weeke

Did this work for you?

 

If so you should make the discussion as solved.

Tim
GHSP
0 Kudos
Message 6 of 24
(2,901 Views)

You have almost done it, but there is just 1 problem.

 

It is fine when white is greater than Red and it is above 1, but when you decrease the slider the Green Should follow White when White is less than Red.

 

though, I would accept this as an answer since this is almost what i wanted.

 

0 Kudos
Message 7 of 24
(2,895 Views)

how to mark it as solved..

 


i have done it before but cant figure out the option

0 Kudos
Message 8 of 24
(2,891 Views)

Here is what you want

Tim
GHSP
0 Kudos
Message 9 of 24
(2,876 Views)

No i am still figuring that out.

 

 

I have attached a picture to show you what is that i actually want.

 

0 Kudos
Message 10 of 24
(2,848 Views)