Admin Production ni-theme
Current Publication

Clear1D

LabWindows/CVI

Clear1D

AnalysisLibErrType Clear1D (double array[], ssize_t numberOfElements);

Purpose

Sets the elements of an array to zero.

The following example uses the Clear1D function.

double inputArray[10];
AnalysisLibErrType status;

// Generate an array of random numbers
status = Uniform (10, 17, inputArray);

status = Clear1D(inputArray, 10);

Parameters

Input
Name Type Description
numberOfElements ssize_t Number of elements in the array.
Output
Name Type Description
array double [] The array to clear.

Return Value

Name Type Description
status AnalysisLibErrType A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.

Additional Information

Library: Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the Clear1D function:

  • analysis\parsevls.cws

    Open example
  • apps\sigproc\sigproc.cws

    Open example