Finds the discrete histogram of the set of input data points specified by sample length. The histogram is a frequency count of the number of times that a specified interval occurs in the set of input data points.

This VI is similar to the Histogram VI.

Note By default, reentrant execution is enabled in all Point By Point VIs.


icon

Inputs/Outputs

  • cdbl.png x

    x is an input data point.

  • ci32.png intervals

    intervals specifies the number of intervals, or bins, to use in the histogram and must be greater than 0. If intervals is less than or equal to 0, the histogram is undefined, and the VI sets Histogram: h(X) and X Values to empty arrays and returns an error. The default is 10.

  • ci32.png sample length

    sample length is the length of each set of incoming data. The VI performs computation for each set of data. The default is 100.

    sample length must be greater than zero.

  • cbool.png initialize

    initialize, when TRUE, initializes the internal state of the VI.

  • icclst.png Histogram Graph

    Histogram Graph displays the bar graph of the histogram of the input sequence x. The y-axis is the histogram count, and the x-axis is the histogram center values of the intervals (bins) of the histogram.

  • i1di32.png Histogram: h(x)

    Histogram: h(x) is the discrete histogram computed from the set of input data points specified by sample length.

  • i1ddbl.png X Values

    X Values is an array of the center values of the interval (bin) of the histogram.

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Signal Processing\Point by Point\Moving Histogram PtByPt.vi