LabVIEW - Instructions for Modifying a Virtual Instrument: Generate a Frequency Spectrum from Sampled DataAuthor: John M. Cimbala, Penn State University Latest revision: 28 February 2008IntroductionThis module assumes that you have already created a simple virtual instrument that samples and plots voltage data. In this exercise, you will modify the existing virtual instrument so that it also calculates and plots a frequency spectrum using the fast Fourier transform (FFT). Initial setup1.Turn on the function generator and the USB data acquisition system (remember that the power switch is in the back of the device). 2.Start LabVIEW (Start >> All Programs>> National Instruments LabVIEW). Continue. 3.Open the virtual instrument that you previously created: File>> Open>> filename, where filename is the name of the vi file (you may need to browse to find it). 4.As always, you may need to move or close the Controlswindow, if it pops up blocking your view. Add spectral analysis to the existing VI1.You will modify the existing VI to add spectral analysis functionality. Specifically, you will add an Express VI (a kind of sub-VI) to perform an FFT of theacquired signal. To do this, you must first make room for the new sub-VI by expanding the while loop. Go to the Block Diagramwindow. Then, click othe upper right-hand corner of the while loop, and drag it acrthe screen (shown to the right). This will give you a little more room to add another sub-vi. Note: You may first also need to enlarge the Block Diagramwindow itself. n oss 2.In the empty space you just created, open the ‘Functions Palette’ by R (right click)-Express>> SignalAnalysis>> Spectral, and place this sub-VI inside the while loop. Doing this will launch a configuration window that allows you to configure several properties of the spectral measurement. 3.In the configuration window, select Magnitude
has intentionally blurred sections.
Sign up to view the full version.