Copy1D
- Updated2023-02-21
- 1 minute(s) read
AnalysisLibErrType Copy1D (double inputArray[], ssize_t numberOfElements, double outputArray[]);
Purpose
Copies the elements from one array to another array.
Use Copy1D to duplicate arrays for in place operations.
The following example uses the Copy1D function.
double inputArray[10], outputArray[10];
AnalysisLibErrType status;
// Generate an array of random numbers
status = Uniform (10, 17, inputArray);
status = Copy1D (inputArray, 10, outputArray);
Parameters
Input | ||
Name | Type | Description |
inputArray | double [] | The array to copy. |
numberOfElements | ssize_t | Number of elements to copy to the output array. |
Output | ||
Name | Type | Description |
outputArray | double [] | The copy of the input array. |
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
Example
Refer to apps\sigproc\sigproc.cws for an example of using the Copy1D function.