LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array to graph

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.

0 Kudos
Message 11 of 19
(182 Views)

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.

Download All
0 Kudos
Message 12 of 19
(171 Views)

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???

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
0 Kudos
Message 13 of 19
(162 Views)

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?

0 Kudos
Message 14 of 19
(154 Views)

Hi fred,

 

do you mean something like this:

check.png(wow, two comparisons combined in one by pure math!)

or that:

check.png(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...)

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
Message 15 of 19
(149 Views)

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!  Smiley Wink

Message 16 of 19
(147 Views)

Hi Raven

 

I never get it when there is satire or irony Smiley Wink

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
Message 17 of 19
(143 Views)

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.

0 Kudos
Message 18 of 19
(136 Views)

Hi fred,

 

enlighten you further: how much more do you need?

 

You only have to put all those bits together...

(And please refuse to open a new thread to ask other people the same question again!)

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
0 Kudos
Message 19 of 19
(131 Views)