LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Identifying 2nd and 3rd Loop in a Graph

Solved!
Go to solution

Hello GregS, so far manual measurement and software measurement match 95%. So seems no issues yet. The only think I didn't get was that, when I use 250 I have a value that is very close to the manually measured distance. But, when I change to 200 or 300 value still very close but different than each other. So I couldn't decide which one to pick. Because deviation for all the values are almost the same.

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 31 of 33
(812 Views)

And one final question GregS, for each different sized spikes should I change the rank constant? For instance, in the current program you saw the spike around 100px but what if I get another spike that is 10px will constant 250 work also?

BTW I thank you so much for leaving your time to my issue.

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 32 of 33
(807 Views)

If you consider what the Median Filter is doing, for each point in your data, it is collecting the 250 points on each side of that, sorting them, and then replacing the original data point with the middle of those 501 points.  So when you're in a 100-point spike, all 100 of those points are lower than the "trend line", so all are below the median.  Trying a range of values from 25 to 400 shows that for any values above 150, the median graph is almost exactly the same, and so is the computed height of the spike.

Medians.png

 

If you have a 10-point spike, there's no problem staying with the rank you have. But if you have a 300-point-wide one, then you'll need to change.

0 Kudos
Message 33 of 33
(777 Views)