Admin Production ni-theme
Current Publication

CxSub1D

LabWindows/CVI

CxSub1D

AnalysisLibErrType CxSub1D (double arrayXReal[], double arrayXImaginary[], double arrayYReal[], double arrayYImaginary[], ssize_t numberOfElements, double outputArrayReal[], double outputArrayImag[]);

Purpose

Subtracts two complex 1D arrays. CxSub1D obtains the ith element of the resulting complex array using the formulas:

outputReali = arrayXReali – arrayYReali

outputImgi = arrayXImgi – arrayYImgi

CxSub1D can perform the operations in place; that is, the input and output complex arrays can be the same.

Parameters

Input
Name Type Description
arrayX_Real double [] Real part of the array to subtract from.
arrayX_Imaginary double [] Imaginary part of the array to subtract from.
arrayY_Real double [] Real part of the array to subtract.
arrayY_Imaginary double [] Imaginary part of the array to subtract.
numberOfElements ssize_t Number of elements to subtract.
Output
Name Type Description
outputArray_Real double [] Real part of result of the complex array subtraction.
outputArray_Imag double [] Imaginary part of the result of the complex array subtraction.

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