05-01-2014 03:21 AM
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
05-01-2014 04:26 AM
unbundle the histogram report.
05-02-2014 02:40 AM
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,
05-02-2014 03:13 AM
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,
05-02-2014 03:33 AM
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
05-02-2014 03:36 AM
Hi Kim,
Thanks for the feedback. I could not help myself to try it myself. Attached you'll find my version.
Regards,
05-02-2014 03:52 AM
Hi Rik,
Do you have a LabView12 version??
Or screenshot?
Thanks
05-02-2014 03:54 AM
Here you go.
Regards,