Chapter 3 Analysis Library
© National Instruments Corporation 3-19 LabWindows/CVI Standard Libraries

GetAnalysisErrorString

char *message = GetAnalysisErrorString (int errorNum)
Purpose
Converts the error number returned by an Analysis Library function into a meaningful error
message.
Parameters
Input errorNum integer Status returned by an
Analysis function.
Return Value
message string Explanation of error.

Histogram

int status = Histogram (double inputArray[], int numberofElements, double base,
double top, int histogramArray[], double axisArray[],
int intervals);
Purpose
Computes the histogram of the inputArray. The histogram is obtained by counting the number
of times that the elements in the input array fall in the ith interval. Let

x = (xTop - xBase) / intervals
yx,i =
{
1 if i x x - xBase < (i + 1) x
0otherwise
∆∆
The ith element of the histogram is:
hist y x i
ij
j
n
=
=
(,)
0
1
The values of the histogram axis are the mid-point values of the intervals:
axis i x x xBase
i=+ +∆∆/2