07-31-2014 01:37 AM
Hello Everybody,
I have been trying to plot a histogram for my photon counting experiment. I am using the histogram.vi, it is working perfectly fine. I would like to add one feature to the histogram that I am plotting, which is changing resolution of bins. In the example code that I have attached, I have used random number generator (generates 1 to 100) to check the histogram which has 100 bins each with a resolution of one, suppose I want to use 50 bins each with a resolution of 2 or 25 bins with each bin holding 4 values, how can I do this?
Also, once the program terminates, How can clear the histogram memory, so that a fresh polt will be poltted?
Thanks for any help
Pradeep.
Solved! Go to Solution.
07-31-2014 02:24 AM
Hi pradeep,
you wired a constant "100" to the Histogram function and now you wonder how to change the number of bins? Don't use a constant here! Doh…
You don't wnat to clear the histogram, but you want to clear your data buffer. Just initialize the Feedback node!
07-31-2014 03:00 AM
thanks GerdW, Insted of using histo.vi I used general histgrom.vi which has the option of binning.
Have a nice day.