05-27-2011 11:26 AM
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.
Solved! Go to Solution.
05-31-2011 06:49 AM
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?
05-31-2011 06:52 AM
Here is an example of the square wave generator.
05-31-2011 09:32 AM
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
05-31-2011 09:48 AM
Here this does what you want.
05-31-2011 10:24 AM
Did this work for you?
If so you should make the discussion as solved.
05-31-2011 11:03 AM
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.
05-31-2011 11:06 AM
how to mark it as solved..
i have done it before but cant figure out the option
05-31-2011 12:13 PM - edited 05-31-2011 12:15 PM
Here is what you want
06-01-2011 06:43 AM
No i am still figuring that out.
I have attached a picture to show you what is that i actually want.