09-14-2011 11:27 AM
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.
09-14-2011 01:55 PM
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.
Thanks.
09-15-2011 02:32 AM
Hi fred,
use a shift register to keep the graylevel value of the last iteration. Then do your comparison with the current value...
Btw:
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???
09-15-2011 11:25 AM
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?
09-15-2011 12:54 PM - edited 09-15-2011 12:55 PM
Hi fred,
do you mean something like this:
(wow, two comparisons combined in one by pure math!)
or that:
(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...)
09-15-2011 01:19 PM
Gerd,
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!
09-15-2011 01:26 PM
09-15-2011 02:21 PM
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.
09-15-2011 02:28 PM - edited 09-15-2011 02:28 PM