Analysis Library Chapter 3
LabWindows/CVI Standard Libraries 3-8 © National Instruments Corporation
Parameters
Input xReal double-precision Real part of x.
xImaginary double-precision Imaginary part of x.
yReal double-precision Real part of y.
yImaginary double-precision Imaginary part of y.
Output outputReal double-precision Real part of z.
outputImaginary double-precision Imaginary part of z.
Return Value
status integer Refer to error codes in Table 3-2.
CxAdd1D
int status = CxAdd1D (double arrayXReal[], double arrayXImaginary[],
double arrayYReal[], double arrayYImaginary[],
int numberofElements, double outputArrayReal[],
double outputArrayImaginary[]);
Purpose
Adds two 1D complex arrays. The function obtains the ith element of the resulting complex
array by using the following formulas.
zr xr yr
iii
=+
zi xi yi
iii
=+
The function performs the operations in place; that is, the input and output complex arrays can be
the same.
Parameters
Input arrayXReal double-precision array Real part of x.
arrayXImaginary double-precision array Imaginary part of x.
arrayYReal double-precision array Real part of y.
arrayYImaginary double-precision array Imaginary part of y.
numberofElements integer Number of elements.
Output outputArrayReal double-precision array Real part of z.
outputArrayImaginary double-precision array Imaginary part of z.