LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

histogram bin values

I am using the histogram function to determine the amount of windspeeds that occur at a certain velocity.  I want the bins to be in increments of 0.5
 
ex.
0
0.5
1.0
1.5
etc
 
I have set the bins with a min of 0, a max of 10, with 20 as the # of bins.  The output is:
0.25
0.75
1.25
1.75
etc
 
What do I need to do for the bins to show up starting from the stated minum (in this case 0)?
Download All
0 Kudos
Message 1 of 3
(3,357 Views)
With histograms bins have widths and the output bin position if the center of the range. So if the bin is at 0.25, it will hold a count for every value between 0 and 0.5, 0.75 will hold a count for values between 0.5 and 1.0 - and so forth.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(3,337 Views)

I believe you are looking at the axis value and according to the help for that VI

Axis specifies the center values for each bin of Histogram. The centers of each bin are set according to the following equation and returned in the output array Axis.

center[i] = (lower + upper)/2,

where lower is the lower boundary of bin i, and upper is the upper boundary of bin i.

 

So the values you are getting are correct and expected.  The bin does go from 0-.5 etc.

0 Kudos
Message 3 of 3
(3,336 Views)