For example, Y first value is 5, second value is 20 and third value is 100.So how do I check to know if the difference between the the first and second value is lets say more then 10 and also check to know if the difference between the second and third value is also more then 10. The number of y value may vary.
Please ignore the previous post. As you all can see from the curve of the XY graph when running my VI. At certain graylevels, the curve would take a sudden dip in value. The value shown at these graylevel where the curve takes a sudden dip in value are believed to be 180 lesser then their actual value. The graylevel at which the curve has a sudden dip in value would not always be the same, meaning that every graylevel has a chance that the y value corresponding to that particular graylevel would have a dip in value. So how do I only choose those points that has a sudden dip in value and add 180 to them and leave those that does not have a sudden dip in value unchanged.
use a shift register to keep the graylevel value of the last iteration. Then do your comparison with the current value...
A honorary mention in the RubeGoldberg-thread is possible:
Why do you build an array of 2 elements, then convert that array to a cluster of 8 elements (!?), to finally unbundle the first 2 elements???
Is there a way that I can do 2 comparisons? Because I would not know if the new value of y is 180 more or 180 less then the previous value of y?
do you mean something like this:
(wow, two comparisons combined in one by pure math!)
(wow, two comparisons next to each other!)
I really don't know if you're willing to learn to program... (Well, one could define "programming" as defining problems and finding ways to solve them...)
I like how you took the words "more than", "less than", and "or" and found the appropriate LabVIEW functions that do what those words mean and combined them together just like the user was asking for!
I still could not get my VI to check if a current value is 180 more or 180 less than its previous value or neither of them? Could you please enlighten me further. Thanks.