National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 3 Analysis Library
© National Instruments Corporation 3-5 LabWindows/CVI Standard Libraries
Return Value
status
integer Refer to error codes in
Table 3-2.
Add1D
int status = Add1D (double arrayX[], double arrayY[], int numberofElements,
double outputArray[]);
Purpose
Adds one-dimensional (1D) arrays. The function obtains the ith element of the output array by
using the following formula:
zxy
iii
=+
The function performs the operation in place; that is, outputArray can be the same array as
either arrayX or arrayY.
Parameters
Input
arrayX
double-precision
array
Input array.
arrayY
double-precision
array
Input array.
numberofElements
integer Number of elements to be
added.
Output
outputArray
double-precision
array
Result array.
Return Value
status
integer Refer to error codes in
Table 3-2.
Add2D
int status = Add2D (void *arrayX, void *arrayY, int numberofRows,
int numberofColumns, void *outputArray);