National Instruments 320571-01 - Manuals
National Instruments 320571-01 – Manual in PDF format online.
Manuals:
Manual National Instruments 320571-01
Summary
© National Instruments Corporation v NI-DSP SRM for LabVIEW for Windows Contents About This Manual .................................................................................................................... xi Assumption of Previous Knowledge ...................................................
Contents NI-DSP SRM for LabVIEW for Windows viii © National Instruments Corporation Chapter 4Using the DMA VIs .................................................................................................................................. 4-1 DSP DMA Copy(DSP to LV) .................................
Contents © National Instruments Corporation ix NI-DSP SRM for LabVIEW for Windows Figures Part 1 Figure 1-1. Development Paths with the NI-DSP Software ............................................................................. 1-1 Part 2 Figure 1-1. Communication between the PC and the DSP Board ...
Contents NI-DSP SRM for LabVIEW for Windows x © National Instruments Corporation Tables Part 1 Table 1-1. Subdirectories Created by SETUP ................................................................................................. 1-2 Part 3 Table 1-1. The NI-DSP Analysis VI Groups ...............
© National Instruments Corporation xi NI-DSP SRM for LabVIEW for Windows About This Manual The NI-DSP Software Reference Manual for LabVIEW for Windows explains how to use the NI-DSP softwarepackage for the LabVIEW for Windows environment. The NI-DSP software package contains the NI-DSP AnalysisVIs,...
About This Manual NI-DSP SRM for LabVIEW for Windows xii © National Instruments Corporation - Chapter 3, DSP Board Function Overview, contains an overview of the prototypes of the C-callableNI-DSP Analysis functions on the DSP board that you can use in your custom programs. - Chapter 4, Using the DM...
About This Manual © National Instruments Corporation xv NI-DSP SRM for LabVIEW for Windows Developer Toolkit The Developer Toolkit, an optional software package that you can purchase separately from National Instruments, isrequired for building custom libraries with the NI-DSP Interface Utilities. T...
NI-DSP SRM for LabVIEW for Windows 1-1 Part 1: Getting Started with NI-DSP Part 1Getting Started with NI-DSP This part contains a brief product overview, information about the NI-DSP for LabVIEW for Windows package, andthe procedure for installing the software. Product Overview The NI-DSP software p...
Getting Started with NI-DSP Part 1 Part 1: Getting Started with NI-DSP 1-2 NI-DSP SRM for LabVIEW for Windows What Your Distribution Diskettes Should Contain The NI-DSP software package contains the NI-DSP for LabVIEW for Windows Disks (for licensed LabVIEW forWindows users). If your kit is missing ...
Part 1 Getting Started with NI-DSP NI-DSP SRM for LabVIEW for Windows 1-3 Part 1: Getting Started with NI-DSP NIDSP is the name you specify during setup. The SETUP program prompts you for information including the drive letter and directory in which you have installed the standard LabVIEW package. T...
NI-DSP SRM for LabVIEW for Windows 1-1 Part 2: Introduction to the NI-DSP Analysis VIs Part 2Introduction to the NI-DSP Analysis VIs This part describes how to use the NI-DSP Analysis VIs in your LabVIEW applications. This part also describeshow to manage memory on the DSP board from your LabVIEW ap...
Introduction to the NI-DSP Analysis VIs Part 2 Part 2: Introduction to the NI-DSP Analysis VIs 1-2 NI-DSP SRM for LabVIEW for Windows The AT-DSP2200 can process large amounts of data, separately and distinctly from the host PC processor. Theboard consists not only of a signal processing chip, but al...
Part 2 Introduction to the NI-DSP Analysis VIs NI-DSP SRM for LabVIEW for Windows 1-5 Part 2: Introduction to the NI-DSP Analysis VIs Special Features of the NI-DSP Analysis VIs This section describes the special features of the NI-DSP Analysis VIs that make them different from otherLabVIEW VIs. • D...
Part 2 Introduction to the NI-DSP Analysis VIs NI-DSP SRM for LabVIEW for Windows 1-7 Part 2: Introduction to the NI-DSP Analysis VIs error out of the Copy Mem(LV to DSP) VI isconnected to the error in of the DSP Free Memory VI error out of the DSP Add VI is connected to the error in of the Copy Mem...
Introduction to the NI-DSP Analysis VIs Part 2 Part 2: Introduction to the NI-DSP Analysis VIs 1-8 NI-DSP SRM for LabVIEW for Windows An Example of Using NI-DSP Analysis VIs Figures 1-10 and 1-11 show the front panel and block diagram, respectively, of an example using NI-DSP AnalysisVIs. Figure 1-1...
NI-DSP SRM for LabVIEW for Windows 1-1 Part 3: NI-DSP Function Reference Chapter 1NI-DSP Analysis VI Reference Overview This chapter contains an overview of the NI-DSP Analysis VIs and includes a list of the VIs. This chapter describeshow the NI-DSP Analysis VIs are organized and how to access them....
Chapter 1 NI-DSP Analysis VI Reference Overview NI-DSP SRM for LabVIEW for Windows 1-3 Part 3: NI-DSP Function Reference Table 1-1. The NI-DSP Analysis VI Groups (Continued) Utility Functions DSP ResetDSP LoadDSP StartDSP TimeoutDSP CustomDSP DMA Copy(DSP to LV)DSP DMA Copy(LV to DSP)DSP Handle to A...
Chapter 1 NI-DSP Analysis VI Reference Overview NI-DSP SRM for LabVIEW for Windows 1-5 Part 3: NI-DSP Function Reference The discrete implementation of the DFT is a numerically intense process. However, it is possible to implement afast algorithm when the size of the sequence is a power of two. Thes...
NI-DSP Analysis VI Reference Overview Chapter 1 Part 3: NI-DSP Function Reference 1-6 NI-DSP SRM for LabVIEW for Windows The set of coefficients a and b are often referred to as the numerator and denominator coefficients, respectively.Another common way to refer to them is as the feedforward and fee...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-4 Part 3: NI-DSP Function Reference DSP Absolute Find the absolute value of input array X. The i th element of the output array Y is obtained usingthe following formula: Y(i) = |X(i) |. for i = 0, 1, 2, … , n-1 where n is th...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-5 NI-DSP SRM for LabVIEW for Windows DSP Add Add array X to array Y. The i th element of the output array Z is obtained using the followingformula: Z(i) = X(i) + Y(i). for i = 0, 1, 2, … , n-1 where n is the smaller number of...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-7 NI-DSP SRM for LabVIEW for Windows DSP Blackman Window Applies a Blackman window to the inputsequence X. If Y represents the outputsequence Blackman{X}, the elements of Yare obtained from the following formula: y i = x i [0...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-8 Part 3: NI-DSP Function Reference DSP Blackman Harris Window Applies a Blackman Harris window tothe input sequence X. If Y representsthe output sequence BlackmanHarris{X}, the elements of Y areobtained using the following ...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-9 NI-DSP SRM for LabVIEW for Windows DSP Butterworth Coefficients Generates the set of filtercoefficients to implement anIIR filter as specified by theButterworth filter model.You can then pass thesecoefficients to the DSP II...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-10 Part 3: NI-DSP Function Reference Parameter Discussion The arrays Forward Coefficients in/out and Feedback Coefficients in/out must have a size of at least (order + 1)for lowpass and highpass filters. The arrays Forward C...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-11 Part 3: NI-DSP Function Reference Feedback Coefficients out is a DSP Handle Cluster that is identical to the Feedback Coefficients in,but with the feedback coefficients already stored in the memory buffer on the DSP board...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-12 NI-DSP SRM for LabVIEW for Windows DSP Complex FFT Computes the Fast Fourier transform ofthe complex input sequence X. If Yrepresents the complex output sequence,then: Y = F{X}. Re{X} is a DSP Handle Cluster that indicates...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-13 Part 3: NI-DSP Function Reference DSP Convolution Computes the convolution of the inputsequences X and Y. The convolution Cxy(t), ofthe signals x(t) and y(t), is defined as follows: Cxy(t) = x(t) * y(t) = ∫ - ∞ ∞ x( τ ) y...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-14 NI-DSP SRM for LabVIEW for Windows DSP Correlation Computes the cross correlation of the inputsequences X and Y. The cross correlation R xy (t) of the signals x(t) and y(t) is defined as follows: R xy (t) = x(t) ⊗ y(t) = ∫...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-15 Part 3: NI-DSP Function Reference DSP Cross Power Computes the cross power spectrum of the inputsequences X and Y. The cross power, S xy (f), of the signals x(t) and y(t) is defined as follows: S xy (f) = X * (f)Y(f) wher...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-16 NI-DSP SRM for LabVIEW for Windows DSP Custom Use this VI as the interface tocall your own custom functionswritten on the DSP board fromLabVIEW. For more detailsabout how to use this VI, referto Part 4, NI-DSP InterfaceUti...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-17 Part 3: NI-DSP Function Reference DSP Decimate Decimates the input sequence X by thedecimating factor and the averaging control.If Y represents the output sequence DecimatedArray, the elements of the sequence Y areobtaine...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-18 NI-DSP SRM for LabVIEW for Windows DSP Deconvolution Computes the deconvolution of the inputsequences X and Y. The convolution operationcan be realized using Fourier identities because x(t) * y(t) ⇔ X(f) Y(f) is a Fourier ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-19 Part 3: NI-DSP Function Reference DSP Derivative Performs a discrete differentiation of thesampled signal X. The differentiation f(t) of afunction F(t) is defined as follows: f(t) = d dt F(t). Let Y represent the sampled ...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-20 NI-DSP SRM for LabVIEW for Windows DSP Divide Divide array X by array Y. The i th element of the output array Z is obtained using thefollowing formula: Z(i) = X(i) / Y(i). for i = 0, 1, 2, …, n-1. where n is the smaller nu...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-21 Part 3: NI-DSP Function Reference DSP Elliptic Coefficients Generates the set of filtercoefficients to implement adigital elliptic IIR filter. Youcan then pass thesecoefficients to the DSP IIRFilter VI. filter type specif...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-23 Part 3: NI-DSP Function Reference DSP Equi-Ripple BandPass Generates a bandpass FIR filterwith equi-ripple characteristicsusing the Parks-McClellanalgorithm and the number of taps,lower stop frequency, higher stopfrequenc...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-25 Part 3: NI-DSP Function Reference DSP Equi-Ripple BandStop Generates a bandstop FIR digital filterwith equi-ripple characteristics using theParks-McClellan algorithm and numberof taps, lower pass frequency, higherpass fre...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-27 Part 3: NI-DSP Function Reference DSP Equi-Ripple HighPass Generates a highpass FIR filter withequi-ripple characteristics using theParks-McClellan algorithm and thenumber of taps, high frequency, stopfrequency, and sampl...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-29 Part 3: NI-DSP Function Reference DSP Equi-Ripple LowPass Generates a lowpass FIR filter with equi-ripple characteristics using the Parks-McClellan algorithm and the number oftaps, pass frequency, stop frequency, andsampl...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-30 NI-DSP SRM for LabVIEW for Windows DSP Exact Blackman Window Applies an Exact Blackman window tothe input sequence X. If Y representsthe output sequence ExactBlackman{X}, the elements of Y areobtained using the formula: y ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-31 Part 3: NI-DSP Function Reference DSP Exponential Window Applies an exponential window to the inputsequence X. If Y represents the outputsequence Exponential{X}, the elements ofY are obtained using the formula: y i = x i ...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-32 NI-DSP SRM for LabVIEW for Windows DSP FHT Computes the fast Hartley transform (FHT) ofthe input sequence X. The Hartley transformof a function x(t) is defined as follows: X(f) = ∫ - ∞ ∞ x(t) cas(2 π ft) dt where cas(x) = ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-33 Part 3: NI-DSP Function Reference DSP Flat Top Window Applies a flat top window to the input sequenceX. If Y represents the output sequenceFlattop{X}, the elements of Y are obtainedusing the formula: y i = x i [0.2810639 ...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-34 NI-DSP SRM for LabVIEW for Windows DSP Force Window Applies a force window to the input sequence XIf Y represents the output sequence Force{X},the elements of Y are obtained using theformula: y i = x i if 0 ≤ i ≤ d...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-35 Part 3: NI-DSP Function Reference DSP Gaussian White Noise Generates a Gaussian distributedpseudorandom pattern whosestatistical profile is as follows: ( µ , σ ) = (0, s) , where s is the absolute value of thespecified st...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-36 NI-DSP SRM for LabVIEW for Windows DSP General Cosine Window Applies a general cosine window to the inputsequence X. If A represents the CosineCoefficients input sequence and Y representsthe output sequence GenCos{X}, the ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-37 Part 3: NI-DSP Function Reference DSP Hamming Window Applies a Hamming window to the inputsequence X. If Y represents the outputsequence Hamming {X} , the elements of Yare obtained from the formula: yi = xi [0.54 - 0.46 c...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-38 NI-DSP SRM for LabVIEW for Windows DSP Handle To Address Finds the actual DSP address value ofDSP Handle Cluster that indicates amemory buffer on the DSP board. You can use the output DSP Address asthe input of the DSP Add...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-39 Part 3: NI-DSP Function Reference DSP Hanning Window Applies a Hanning window to the inputsequence X. If Y represents the outputsequence Hanning {X}, the elements of Y areobtained using the formula: y i = 0.5 x i [1 - cos...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-40 NI-DSP SRM for LabVIEW for Windows DSP IIR Filter Performs IIR filtering on theX input array and reports theresult in Y. It uses the arraysa and b of sizes sza and szbrespectively in implementingthe linear difference equat...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-42 NI-DSP SRM for LabVIEW for Windows DSP Impulse Pattern Generates an array containing animpulse pattern. If the ImpulsePattern is represented by thesequence X, the VI generates thepattern according to the followingformula: ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-43 Part 3: NI-DSP Function Reference DSP Impulse Train Pattern Generates a train of impulses of valueamplitude at sample delay. If the impulse train pattern is representedby the sequence X, the VI generates thepattern accord...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-44 NI-DSP SRM for LabVIEW for Windows DSP Index Memory Indexes into a DSP bufferallocated in the memoryspace of the specified DSPboard. The return value isanother DSP Handle Cluster.This VI does not allocatememory. In order t...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-45 Part 3: NI-DSP Function Reference DSP Init Memory Initializes the memory heaps and frees allallocations of memory on the specified DSPboard. slot is the board ID number. slot defaults to 3. error in (no error) contains th...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-46 NI-DSP SRM for LabVIEW for Windows DSP Integral Performs the discrete integration of thesampled signal X. The integral F(t) of afunction f(t) is defined as follows: F(t) = ∫ f(t) dt . Let Y represent the sampled output seq...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-47 Part 3: NI-DSP Function Reference DSP Inv Chebyshev Coeff Generates the set of filtercoefficients to implement aninverse IIR filter as specifiedby the Chebyshev II Filtermode. You can then passthese coefficients to the DS...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-48 NI-DSP SRM for LabVIEW for Windows error in (no error) contains the error information from a previous VI. If an error occurs, it is passed outerror out and no other calls are made. error out contains the error information ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-49 Part 3: NI-DSP Function Reference DSP Inverse FHT Computes the inverse fast Hartley transform ofthe input sequence FHT {X}. The inverseHartley transform of a function X(f) is definedas x(t) = ∫ - ∞ ∞ X(f) cas(2 π ft) df w...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-50 NI-DSP SRM for LabVIEW for Windows DSP Kaiser-Bessel Window Applies a Kaiser-Bessel window to theinput sequence X. If Y represents theoutput sequence Kaiser-Bessel{X}, theelements of Y are obtained using theformula: y i = ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-51 Part 3: NI-DSP Function Reference DSP Linear Evaluation Performs a linear evaluation of the input arrayX. The i th element of the output array Y is obtained using the following formula: Y(i) = a* X(i) + b for i = 0, 1, 2,...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-52 NI-DSP SRM for LabVIEW for Windows DSP Log Computes the logarithm base 10 of the X inputarray. The ith element of resulting array isobtained by using the following formula: y(i) = log10 (X(i)) * mult for i = 0, 1, 2, …, n-...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-54 NI-DSP SRM for LabVIEW for Windows DSP Median Filter Applies a median filter of rank to theinput sequence X. The median filter is anonlinear filter that combines lowpassfilters characteristics (to remove high-frequency noi...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-55 Part 3: NI-DSP Function Reference DSP Multiply Multiply array X by array Y. The i th element of the output array Z is obtained using thefollowing formula: Z(i) = X(i) * Y(i) for i = 0, 1, 2, …, n-1, where n is the smaller...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-60 NI-DSP SRM for LabVIEW for Windows DSP Polar to Rectangular Converts a set of polar coordinate points(Magnitude, Phase) to a set of rectangularcoordinate points (X, Y). The i th elements of the rectangular set is obtained ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-61 Part 3: NI-DSP Function Reference DSP Polynomial Evaluation Performs a polynomial evaluation on the inputarray X. The i th element of the output array Y is obtained using the following formula: k-1 Y(i) = ∑ (Coefficients(...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-62 Part 3: NI-DSP Function Reference DSP Power Spectrum Computes the Power Spectrum of theinput sequence X. The Power SpectrumS xx (f) of a function x(t) is defined as S xx (f) = X * (f)X(f) = | X(f) | 2 , where X(f) = F{x(t...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-63 NI-DSP SRM for LabVIEW for Windows DSP Pulse Pattern Generates an array containing a pulsepattern. If Pulse Pattern is representedby the sequence X, then the pattern isgenerated according to the followingformula: x i = ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-64 Part 3: NI-DSP Function Reference DSP Ramp Pattern Generates an array containing a ramppattern. If the Ramp Pattern isrepresented by the sequence X, then thepattern is generated according to theformula: x i = x 0 + i ∆ x ...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-65 NI-DSP SRM for LabVIEW for Windows DSP Random Pattern Generates a uniformly distributedpseudorandom pattern whose valuesare in the range [0:1]. The sequence isgenerated using the Very-Long-Cyclerandom number generator algo...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-66 Part 3: NI-DSP Function Reference DSP Rectangular To Polar Converts a set of rectangular coordinatepoints (X, Y) to a set of polar coordinatepoints (Magnitude, Phase). The i th element of the polar coordinate set isobtain...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-67 NI-DSP SRM for LabVIEW for Windows DSP ReFFT Computes the Fast Fourier transform of areal input sequence X. If Y representsthe complex output sequence, then: Y = F{X}. X is a DSP Handle Cluster that indicates the memory bu...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-68 Part 3: NI-DSP Function Reference DSP Reverse Reverse the order of the elements of the inputarray X. X is a DSP Handle Cluster that indicates the memory buffer on the DSP board that contains the inputsignal array X. The o...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-69 NI-DSP SRM for LabVIEW for Windows DSP Sawtooth Pattern Generate a sawtooth pattern withpositive-slope, zero-crossing atsample delay. If the sawtoothpattern is represented by thesequence Y, then the pattern isgenerated acc...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-70 Part 3: NI-DSP Function Reference DSP Set Set the elements of the input array X to theconstant value set value. If the output Set {X}is represented by the sequence Y, then: y i = set value for i = 0, 1, 2, …, n-1 , where ...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-71 NI-DSP SRM for LabVIEW for Windows DSP Sinc Pattern Generates an array containing a sincpattern. If the Sinc Pattern is representedby the sequence Y, then the pattern isgenerated according to the followingformula: y i = a ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-72 Part 3: NI-DSP Function Reference DSP Sine Pattern Generates an array containing a sinusoidalpattern. If the Sine Pattern is representedby the sequence Y, the pattern isgenerated according to the followingformula: y i = a...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-73 NI-DSP SRM for LabVIEW for Windows DSP Square Pattern Generates an array containing a squarepattern. If the Square Pattern isrepresented by the sequence X, thenthe pattern is generated according tothe following formula: x ...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-74 Part 3: NI-DSP Function Reference DSP Square Root Find a square root estimate of the absolute valueof each element of the input array X . The i th element of the output array Y is obtained usingthe following formula: Y(i)...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-75 NI-DSP SRM for LabVIEW for Windows DSP Sort Sort the input array X in ascending ordescending order. X is a DSP Handle Cluster that indicates the memory buffer on the DSP board that contains the inputsignal array X. directi...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-76 Part 3: NI-DSP Function Reference DSP Start Enables the DSP board to run. Use DSP Startwith the DSP Load and DSP Reset VIs afterdownloading a custom application. slot is the board ID number. slot defaults to 3. error in (...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-77 NI-DSP SRM for LabVIEW for Windows DSP Subtract Subtract array Y from array X. The i th element of the output array Z is obtained using thefollowing formula: Z(i) = X(i) -Y(i). for i = 0, 1, 2, …, n-1 , where n is the smal...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-78 Part 3: NI-DSP Function Reference DSP TimeOut Selects the timeout limit in seconds to waitfor a function on DSP board to completeexecution. The default timeout setting at startup andafter a DSP Reset call is 10 s. All sub...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-79 NI-DSP SRM for LabVIEW for Windows DSP Triangle Pattern Generates an array containing atriangle pattern. If the TrianglePattern is represented by thesequence Y, the pattern is generatedaccording to the following formula: y...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-81 NI-DSP SRM for LabVIEW for Windows DSP Triangular Train Generates a train of triangularpattern crossing value zero at delaywith positive slope. If the triangulartrain is represented by the sequenceY, the pattern is generat...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-82 Part 3: NI-DSP Function Reference DSP Triangular Window Applies a triangular window to the inputsequence X. If Y represents the outputsequence Triangle{X}, the elements of Y areobtained from the formula: y i = x i tri(w) ...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-83 NI-DSP SRM for LabVIEW for Windows DSP Uniform White Noise Generates a uniformly distributedpseudorandom pattern whose values are inthe range [-a:a], where a is the absolutevalue of amplitude. The pseudorandomsequence is g...
Chapter 2 NI-DSP Analysis VI Reference NI-DSP SRM for LabVIEW for Windows 2-84 Part 3: NI-DSP Function Reference DSP Unwrap Phase Unwraps the Phase array by eliminatingdiscontinuities whose absolute values exceed π . X is a DSP Handle Cluster that indicates the memory buffer on the DSP board that co...
NI-DSP Analysis VI Reference Chapter 2 Part 3: NI-DSP Function Reference 2-85 NI-DSP SRM for LabVIEW for Windows DSP Zero Padder Pads the input array with zero fromstarting index to the end of the input array. This VI is useful when the size of theacquired data buffers is not a power of twoand you w...
NI-DSP SRM for LabVIEW for Windows 1-1 Part 4: NI-DSP Interface Utilities Chapter 1Introduction to the NI-DSP Interface Utilities This chapter contains an overview of the NI-DSP Interface Utilities, installation instructions, and explains how touse the NI-DSP Interface Utilities. You should familiar...
Introduction to the NI-DSP Interface Utilities Chapter 1 Part 4: NI-DSP Interface Utilities 1-2 NI-DSP SRM for LabVIEW for Windows The Examples directory contains the files used in Part 4, Chapter 2, Getting Started with the NI-DSP Interface Utilities, to build a custom DSP Library. The LIB director...
NI-DSP SRM for LabVIEW for Windows 2-1 Part 4: NI-DSP Interface Utilities Chapter 2Getting Started with the NI-DSP InterfaceUtilities This chapter contains a step-by-step example for building a custom DSP Library, creating a LabVIEW interface to acustom function, and executing the custom function fr...
Getting Started with the NI-DSP Interface Utilities Chapter 2 Part 4: NI-DSP Interface Utilities 2-2 NI-DSP SRM for LabVIEW for Windows long *n,*imin,*imax;{long i,j;float *x, small;float localmin ,localmax; if ((*n)<= 0) return(0);x = z;localmin = *x;localmax = localmin;*imax = 0;*imin = 0;for (...
Getting Started with the NI-DSP Interface Utilities Chapter 2 Part 4: NI-DSP Interface Utilities 2-4 NI-DSP SRM for LabVIEW for Windows • Return a 16-bit short integer error code–Every function should return an integer error code. A list of error codesthat the existing DSP Library returns is given i...
Chapter 2 Getting Started with the NI-DSP Interface Utilities NI-DSP SRM for LabVIEW for Windows 2-5 Part 4: NI-DSP Interface Utilities 2. Compile and/or Assemble Source Code Compile all new C source files and assemble all new assembly source files using the WE DSP32C C compiler andassembler. Rememb...
Getting Started with the NI-DSP Interface Utilities Chapter 2 Part 4: NI-DSP Interface Utilities 2-6 NI-DSP SRM for LabVIEW for Windows Notice that functions accepted by the Dispatch application should have acceptable C syntax, that is, names may contain letters, numbers, and the underscore characte...
Chapter 2 Getting Started with the NI-DSP Interface Utilities NI-DSP SRM for LabVIEW for Windows 2-9 Part 4: NI-DSP Interface Utilities The makelib.bat batch file performs the following: 1. makelib.bat assembles the file stackbld.s in the current directory using the AT&T d3as.exe assembler. You ...
Getting Started with the NI-DSP Interface Utilities Chapter 2 Part 4: NI-DSP Interface Utilities 2-11 NI-DSP SRM for LabVIEW for Windows 2. Call the Custom VI After you bundle all of the parameters to arrays, connect each array to the corresponding terminals of the CustomVI. Figure 2-7 shows how to ...
Getting Started with the NI-DSP Interface Utilities Chapter 2 Part 4: NI-DSP Interface Utilities 2-13 NI-DSP SRM for LabVIEW for Windows Figure 2-10. Front Panel–Using the Custom VI to Call gmaxmin.c on the DSP Board from LabVIEW At this point, finish creating the VI interface to call your custom fu...
Chapter 3 DSP Board Function Overview NI-DSP SRM for LabVIEW for Windows 3-3 Part 4: NI-DSP Interface Utilities short DSP_Sqrt (float * x, long n, float * y)short DSP_Sub (float * x, float * y, long n, flaot * z)short DSP_Subset (float * x, long n, long index, long length, float * y)short DSP_Sum (f...
© National Instruments Corporation A-1 NI-DSP SRM for LabVIEW for Windows Appendix AError Codes This appendix contains a list of the error codes returned by the NI-DSP Analysis VIs and the corresponding errormessages. Error Conditions If an error condition occurs during execution of any of the VIs i...
Technical Support Form Photocopy this form and update it each time you make changes to your software or hardware, and use the completedcopy of this form as a reference for your current configuration. Completing this form accurately before contactingNational Instruments for technical support helps ou...
Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our products. Thisinformation helps us provide quality products to meet your needs. Title: NI-DSP ™ Software Reference Manual for LabVIEW ® for Windows Edition Date: December 1993 Part Number...
© National Instruments Corporation Index- 1 NI-DSP SRM for LabVIEW for Windows Index A Alloc_Mem function, Part 4: 2-3array VIs DSP Absolute, Part 3: 2-4DSP Add, Part 3: 2-5DSP Clip, Part 3: 2-11DSP Divide, Part 3: 2-20DSP Linear Evaluation, Part 3: 2-50DSP Log, Part 3: 2-51DSP Max & Min, Part 3...
National Instruments Manuals
-
National Instruments SCC-AI01
Manual
-
National Instruments USB-6008/6009
Manual
-
National Instruments 7334
Manual
-
National Instruments NI 9403E
Manual
-
National Instruments DIO 6533
Manual
-
National Instruments NI PCI-5114
Manual
-
National Instruments 1000DC
Manual
-
National Instruments 321518A-01
Manual
-
National Instruments NI 5672
Manual
-
National Instruments USB-9221
Manual
-
National Instruments PCI
Manual
-
National Instruments NI 9229
Manual
-
National Instruments 6211
Manual
-
National Instruments NI 9217
Manual
-
National Instruments NI USB-6009
Manual
-
National Instruments NI sbRIO-960x
Manual
-
National Instruments 6024E
Manual
-
National Instruments 3.x
Manual
-
National Instruments NI 784xR
Manual
-
National Instruments NI-Motion
Manual