@mub.re wrote:
That's exactly what I need, but the code isn't quite clear. Could you please elaborate or upload an example if don't mind.
The quality of my answer cannot be significantly better than the quality of the question (well, sometime I guess right and it is!).
Apparently, you have several analysis steps:
- Calculating a histogram of the raw data
- calculating the integral of the histogram
- Graphing both 1&2
- Displaying the axis markers containing a percentage sign.
Initially, I thought you needed help with #4. Later I added a solution for 2&3, still assuming that you already have the histogram data. Now you are telling me that you also need help with #1. Who could have guessed!!!
I have asked you to attach some typical data, which you did not do, but would have cleared things up. I am not clairvoyant! Once you decide to attach some data, I will attach the full solution. Until then, it is a waste of my time to keep guessing what your problem really is.
Yes, LabVIEW has built-in functions to calculate histograms, but I would recommend an even simpler solution. What is the data range (0 to 0.1??)? How many bins do you want (100?)? Do you also need a bin for values that are outside the range? No matter what, the code is trivial and probably fits on a postage stamp. 😄