National Instruments 320682C Musical Toy Instrument User Manual


 
Analysis Library Chapter 3
LabWindows/CVI Standard Libraries 3-4 © National Instruments Corporation
large amounts of data. Large double-precision arrays consume a lot of memory. If the
results you want do not require that you keep the original array or intermediate arrays of data,
perform analysis operations in place where possible.
The Interactive window maintains a record of generated code. If you forget to keep the code
from a function panel, you can cut and paste code between the Interactive and Program
windows.
Reporting Analysis Errors
The functions in the Analysis Library return status information through a return value.
If the return value
status
is zero after an Analysis Library function call, the function properly
executed with no errors. Otherwise,
status
is set to the appropriate error value. Error messages
corresponding to the possible
status
values are listed at the end of this chapter.
Analysis Library Function Reference
This section describes each function in the LabWindows/CVI Analysis Library. The
LabWindows/CVI Analysis Library functions are arranged alphabetically.
Abs1D
int
status
=
Abs1D
(
double
inputArray
[]
,
int
numberofElements,
double
outputArray
[]
);
Purpose
Finds the absolute value of the
inputArray
. The function performs the operation in place;
inputArray
and
outputArray
can be the same array.
Parameters
Input
inputArray
double-precision
array
Input array.
numberofElements
integer Number of elements.
Output
outputArray
double-precision
array
Absolute value of input array.