Page 5 - Contents; About This Manual
© National Instruments Corporation v NI-DSP SRM for LabVIEW for Windows Contents About This Manual .................................................................................................................... xi Assumption of Previous Knowledge ...................................................
Page 8 - Glossary
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) .................................
Page 9 - Figures
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 ...
Page 10 - Tables; Appendix A
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 ...............
Page 11 - Assumption of Previous Knowledge
© 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,...
Page 12 - Conventions Used in This Manual
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...
Page 15 - Developer Toolkit; Compatible Hardware
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...
Page 16 - Product Overview
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...
Page 17 - What Your Distribution Diskettes Should Contain; Installing NI-DSP for LabVIEW for Windows
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 ...
Page 18 - Board Configuration; Installation on an ISA (or AT) Bus Computer
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...
Page 19 - Using the NI-DSP VIs in LabVIEW
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...
Page 20 - Memory Management and Data Transfer
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...
Page 23 - Special Features of the NI-DSP Analysis VIs
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...
Page 25 - Hints for Improving the Execution Speed on the DSP Board
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...
Page 26 - An Example of Using NI-DSP Analysis VIs
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...
Page 28 - The NI-DSP Analysis VI Overview
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....
Page 30 - Analysis VI Organization; Accessing the NI-DSP Analysis VIs
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...
Page 32 - About Filtering
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...
Page 33 - About Windowing
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...
Page 39 - DSP Absolute
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...
Page 40 - DSP Add
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...
Page 42 - DSP Blackman Window
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...
Page 43 - DSP Blackman Harris Window
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 ...
Page 44 - DSP Butterworth Coefficients
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...
Page 45 - DSP Chebyshev Coefficients
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...
Page 46 - DSP Clip
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...
Page 47 - DSP Complex FFT
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...
Page 48 - DSP Convolution
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...
Page 49 - DSP Correlation
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) = ∫...
Page 50 - DSP Cross Power
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...
Page 51 - DSP Custom
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...
Page 52 - DSP Decimate
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...
Page 53 - DSP Deconvolution
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 ...
Page 54 - DSP Derivative
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 ...
Page 55 - DSP Divide
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...
Page 56 - DSP Elliptic Coefficients
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...
Page 58 - DSP Equi-Ripple BandPass
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...
Page 60 - DSP Equi-Ripple BandStop
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...
Page 62 - DSP Equi-Ripple HighPass
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...
Page 64 - DSP Equi-Ripple LowPass
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...
Page 65 - DSP Exact Blackman Window
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 ...
Page 66 - DSP Exponential Window
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 ...
Page 67 - DSP FHT
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) = ...
Page 68 - DSP Flat Top Window
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 ...
Page 69 - DSP Force Window; DSP Free Memory
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...
Page 70 - DSP Gaussian White Noise
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...
Page 71 - DSP General Cosine Window
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 ...
Page 72 - DSP Hamming Window
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...
Page 73 - DSP Handle To Address
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...
Page 74 - DSP Hanning Window
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...
Page 75 - DSP IIR Filter
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...
Page 77 - DSP Impulse Pattern
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: ...
Page 78 - DSP Impulse Train Pattern
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...
Page 79 - DSP Index Memory
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...
Page 80 - DSP Init Memory
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...
Page 81 - DSP Integral
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...
Page 82 - DSP Inv Chebyshev Coeff
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...
Page 83 - DSP Inverse FFT
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 ...
Page 84 - DSP Inverse FHT
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...
Page 85 - DSP Kaiser-Bessel Window
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 = ...
Page 86 - DSP Linear Evaluation; DSP Load
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,...
Page 87 - DSP Log
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-...
Page 89 - DSP Median Filter
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...
Page 90 - DSP Multiply
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...
Page 95 - DSP Polar to Rectangular
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 ...
Page 96 - DSP Polynomial Evaluation
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(...
Page 97 - DSP Power Spectrum; DSP Product
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...
Page 98 - DSP Pulse Pattern
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 = ...
Page 99 - DSP Ramp Pattern
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 ...
Page 100 - DSP Random Pattern
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...
Page 101 - DSP Rectangular To Polar
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...
Page 102 - DSP ReFFT; DSP Reset
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...
Page 103 - DSP Reverse
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...
Page 104 - DSP Sawtooth Pattern
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...
Page 105 - DSP Set; DSP Shift
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 ...
Page 106 - DSP Sinc Pattern
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 ...
Page 107 - DSP Sine Pattern
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...
Page 108 - DSP Square Pattern
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 ...
Page 109 - DSP Square Root
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)...
Page 110 - DSP Sort
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...
Page 111 - DSP Start; DSP Subset
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 (...
Page 112 - DSP Subtract; DSP Sum
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...
Page 113 - DSP TimeOut
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...
Page 114 - DSP Triangle Pattern
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...
Page 116 - DSP Triangular Train
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...
Page 117 - DSP Triangular Window
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) ...
Page 118 - DSP Uniform White Noise
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...
Page 119 - DSP Unwrap Phase
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...
Page 120 - DSP Zero Padder
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...
Page 121 - Overview of the NI-DSP Interface Utilities
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...
Page 122 - Installing the NI-DSP Interface Utilities
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...
Page 123 - Creating Your Custom NI-DSP Library; Create Your Source Code of C Functions
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...
Page 124 - Guidelines for the Custom Functions
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 (...
Page 126 - DSP Board Memory Management
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...
Page 127 - Add Your New Function Names to a Library Function List File
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...
Page 128 - Customizing the DSP Library by Deleting Functions
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...
Page 131 - Creating Your LabVIEW Interface; Bundle All of the Input Parameters to Arrays
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 ...
Page 133 - Call the Custom VI; Index the Output Arrays to Obtain the Results
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 ...
Page 135 - Executing the Custom Function from LabVIEW
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...
Page 138 - Data Acquisition Functions
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...
Page 143 - Error Conditions
© 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...
Page 148 - Technical Support Form
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...
Page 150 - Documentation Comment Form
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...
Page 152 - Index
© 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...