LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get only the data above threshold of histograph

Hi,

 

I have a histograph and only want the use the data above a particular threshold.

This to avoid data which is deviating from the average.

 

Are there vi's available for this??

 

thanks

0 Kudos
Message 1 of 8
(3,370 Views)

unbundle the histogram report.

0 Kudos
Message 2 of 8
(3,353 Views)

Hello Kim,

 

It depends a little which function produces the Histogram. Some have more info in them then others. But you always will have an array containing the data points (bins) in it. Unbundle that one from the cluster and write some code like in the following link to do the threshold:

 

https://decibel.ni.com/content/docs/DOC-35773

 

You might consider to take the example profided and alster it so that it unbundles the data, aplies the threshold and re-bundles the histogram data again. Us that as a subvi inbetween your ouput of the function producing the histogram and the display of it. Make the threshold, histogram in and histogram out as your in and ouputs for the subVI.

 

Let me know if there is anything more we can help you with.

 

Regards, 

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 3 of 8
(3,315 Views)

Hello Kim,

 

One addition to the above: You ofcourse have to get the correct X values out of the x values array belonging to the bins your are getting with the threshold.

 

Regards,

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 4 of 8
(3,307 Views)

Thanks Rik for your reply.

 

I alreayde wrote my own code.

I thought maybe there was vi available for this (I lost some time in the past writing my own vi's which were already available :-))

 

Regards,

Kim

0 Kudos
Message 5 of 8
(3,300 Views)

Hi Kim,

 

Thanks for the feedback. I could not help myself to try it myself. Attached you'll find my version.

 

Regards,

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 6 of 8
(3,297 Views)

Hi Rik,

 

Do you have a LabView12 version??

Or screenshot?

 

Thanks

0 Kudos
Message 7 of 8
(3,292 Views)

Here you go.

 

Regards,

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 8 of 8
(3,290 Views)