LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

automating subjective criteria: log graph with background noise

This is a bit obscure, but I have a challenge for you.  I'm tasked with automating a step in a test, which currently is being done visually by the operator.  It involves a count-rate plot on a graph control (a spectrum plot).  The single criterion is to be sure that the cutoff occurs at 50.00 on the X-axis.

 

2016-09-14 15_18_16-Data Graphs.png

 

This is a bit tricky to isolate, due to the amount of noise after this spot on the axis.  I tried looking at a polynomial trend line, but this isn't very helpful. 

 

2016-09-15 08_31_49-Data Graphs.png

 

Thoughts?

0 Kudos
Message 1 of 6
(3,563 Views)

How is the "cutoff" defined?

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 6
(3,554 Views)

Have you considered using the Threshold function?

S. Eren BALCI
IMESTEK
0 Kudos
Message 3 of 6
(3,551 Views)

The spectrum must asymptotically approach 0 on the Y axis at 50 in the X.  I've drawn some lines:

 

2016-09-15 09_29_46-2016-09-14 15_18_16-Data Graphs.png - Windows Photo Viewer.png

 

You can see how it's tricky, since the noise floor keeps the Y magnitude up near 0.5 at 50.  A failing unit will look like this:

 

2016-09-15 09_34_21-Clipboard.png

...where the "knee" of the curve begins slightly before (or after) the 50.0 point.  

0 Kudos
Message 4 of 6
(3,550 Views)

I wonder if using the trend of the derivative function can be of help.

This could be preceded by some preprocessing like removal of outliers and possibily some averaging to smooth the function, if all that does not introduce relevant modifications to the phenomenon being studied.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 6
(3,506 Views)

I'm making some headway.  I first did a very broad smoothing of the plot above 50.00.  This gave me:

 

2016-09-21 15_08_39-Data Graphs.png

 

I then cropped out a window of this data and did a poly fit:

 

2016-09-21 15_07_24-Data Graphs.png

 

My reasoning is that if this poly fit intersects near 50.00, I'm in range.  We'll see...

0 Kudos
Message 6 of 6
(3,456 Views)