Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer [2019/06/10 19:59] – [3. Spectrum Analyzer User Interface Overview] Arthur Brownlearn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer [2023/02/13 22:36] (current) Arthur Brown
Line 1: Line 1:
-======Using the Spectrum Analyzer (Under Construction)====== +======Using the Spectrum Analyzer (Redirect) ====== 
-{{:reference:instrumentation:analog-discovery-studio:hardware-reference-manual:spectrum-analyzer.png?nolink&800}} +~~REDIRECT>test-and-measurement:guides:waveforms-spectrum-analyzer~~ 
- +~~NOSEMANTIC~~ 
-===== Introduction ===== +{{tag>redirect}}
-This guide explains the use of the //Spectrum// instrument in WaveForms. This instrument is used to measure different-frequency components of a captured analog input signal. +
----- +
-===== Prerequisites ===== +
-  * A Digilent Test & Measurement Device with Analog Input and Output Channels +
-  * A Computer with WaveForms Software Installed +
- +
----- +
- +
-==== 1. Opening the Spectrum Analyzer==== +
- +
-<WRAP group> +
-<WRAP column half> +
-== 1.1 == +
-Plug in your Test & Measurement Device, then start WaveForms and make sure your device is connected. +
- +
-If no device is connected to the host computer when WaveForms launches, the **Device Manager** will be launched. Make sure that the device is plugged in and turned on, at which point it will appear in the Device Manager's device list (1.). Click on the device in the list to select it, then click the **Select** button (2.) to close the Device Manager. +
- +
-**Note:** //"DEMO" devices are also listed, which allow the user to use WaveForms and create projects without a physical device.// +
- +
-**Note:** //The Device Manager can be opened by clicking on the "Connected Device" button in the bottom right corner of the screen (3.), or by selecting "Device Manager" from the "Settings" menu at the top of the screen.// +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-oscilloscope:waveforms-device-manager.png?600 |}} +
-</WRAP> +
-</WRAP> +
----- +
-<WRAP group><WRAP column half> +
-== 1.2 == +
-Once the Welcome page loads, in the instrument panel at the left side of the window, click on the **Spectrum** button to open the //Spectrum Analyzer// instrument. +
-</WRAP><WRAP column half> +
-{{ :learn:instrumentation:tutorials:waveforms-instrument-panel:waveforms-instrument-panel-spectrum.png?nolink&600 |}} +
-</WRAP></WRAP> +
----- +
-<WRAP group> +
-<WRAP column half> +
-== 1.3 == +
-Once the //Spectrum// instrument opens, the window contains the plot plane, the Control Bar above the plot plane, and the Configuration Panel to the right of the plot plane. +
-</WRAP> +
-<WRAP column half> +
-</WRAP> +
-</WRAP> +
- +
----- +
-==== 2. Using the Spectrum Analyzer==== +
- +
-//This section walks through setting up the Spectrum Analyzer tool to analyze the frequency response of a simple signal.// +
-<WRAP group> +
-<WRAP column half> +
-== 2.1 Hardware Setup == +
-In order to measure a signal with the //Spectrum// instrument, there must first be a signal to measure. To this end, step 2.1 of this guide describes setting up a simple loopback circuit that connects the Test & Measurement Device's Waveform Generator and Oscilloscope pins. +
- +
-Connect the Test & Measurement Device>'s scope channel 1 pin (orange wire) to the device's wavegen channel 1 output pin (yellow wire). For devices that use differential input channels, such as the Analog Discovery Studio with MTE cables, make sure to connect the scope channel 1 negative pin (orange wire with white stripes) to the ground pin associated with wavegen channel 1 (black wire). +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-oscilloscope:scope-hw-setup.png?nolink&600 |}} +
-</WRAP> +
-</WRAP> +
----- +
-== 2.2 Input Signal == +
-<WRAP group> +
-<WRAP column half> +
-With the loopback circuit set up, a signal must now be applied to the analog output pins. WaveForms' //Wavegen// instrument will be used to accomplish this. +
- +
-From the //Spectrum// instrument, opened in step 1.2, return to WaveForms' Welcome page by clicking on its tab at the top of the screen. In the Welcome tab, open the //Wavegen// instrument (noted by the red arrow in the image at right). Click the "Run" button in the control bar near the top of the window (red box in image at right) to begin outputting a signal. With default settings, a 1V amplitude (2V peak-to-peak) 1kHz sine wave is applied to the wavegen channel 1 output pin. Change the **Frequency** to 500kHz by selecting the value from the drop-down menu or by typing into the text field.  +
- +
-For more detail on how to use the //Wavegen// instrument, please see the [[learn:instrumentation:tutorials:analog-discovery-studio-waveform-generator:start|Using the Waveform Generator]] guide. +
- +
-Return to the //Spectrum// instrument by clicking on its tab in the bar at the top of the screen. +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-run-wavegen.png?nolink&600 |}} +
-</WRAP> +
-</WRAP> +
----- +
-<WRAP group> +
-<WRAP column half> +
-== 2.3 Begin Capturing Data == +
-Click the Run button ({{:learn:instrumentation:tutorials:waveforms-buttons:waveforms-run.png?nolink}}) button in the control bar near the top of the window to begin capturing data on the analog input channels. Captured data will appear in the plot pane as a set of colored lines. The yellow line (labeled 1. in the image to the right) corresponds to the signal captured on analog input channel 1. The blue line (2.) corresponds to the signal captured on analog input channel 2. +
- +
-Since analog input channel 2 was left "floating" (not connected) while making connections in step **2.1**, it can be disabled by clicking the checkbox in the "Channel 2" box (3.) in the configuration panel at the right side of the window. +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-initial-capture.png?nolink&600 |}} +
-</WRAP> +
-</WRAP> +
----- +
-<WRAP group> +
-<WRAP column half> +
-== 2.4 Plot Pane Axes == +
-By default, the plot vertical axis units are decibel volts (dBV) from -200dBV to 0dBV and the horizontal axis is frequency from 0MHz to 1MHz. To change these values, use the Control Bar located above the plot plane or the Configuration Panel located to the right of the plot plane which are discussed in subsequent sections. With the Spectrum tool running, the plot should show a large "spike" at 0.5MHz (the 500kHz sine wave from the WaveGen 1 channel) peaking close to 0dBV with all other frequencies between -80dBV and -120dBV (electronic noise).   +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-analyzer-peak.png?nolink&600 |}} +
-</WRAP> +
-</WRAP> +
----- +
-<WRAP group> +
-<WRAP column half> +
-== 2.5 Plot Plane Cursors == +
-To take a quick measurement of the period and frequency of the sine wave, click the "Quick MeasureVertical" button at the top right side of the plot pane. Move the cursor over the plot pane, and observe the values displayed. If the values change too quickly to make out, the capturing of data can be stopped by clicking on the "Stop" button ({{:learn:instrumentation:tutorials:waveforms-buttons:waveforms-stop.png?nolink}}) in the control bar near the top of the window. To remove this cursor, deselect the "Quick Measure: Vertical" ({{:learn:instrumentation:tutorials:waveforms-buttons:waveforms-cursor-vertical.png?nolink}}) button. Normal and delta cursors are available by clicking on the "Add Cursor" button located in the bottom left corner of the plot plane. Click and hold the cursor icon to drag it to a point of measurement in the plot plane. To change the cursor's position, delta, reference, and/or color parameters or to delete the cursor, click the arrow on the right side of the cursor icon and update these parameters as necessary.  +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-analyzer-quick-measure.png?nolink&600 |}} +
-</WRAP> +
-</WRAP> +
----- +
-====3. Spectrum Analyzer User Interface Overview==== +
-//This section describes the various controls present in the //Spectrum// instrument.// +
----- +
-<WRAP group> +
-<WRAP column half> +
-==3.1 Control Bar== +
-The Control Bar is located above the plot plane. Located on the left side of the Control Bar, the Single and Run control buttons will start measurements with either a single acquisition or a continuous acquisition, respectively. +
- +
-Several fields, to the right of the control buttons, can be used to configure the algorithm used to determine the spectral composition of the sampled waveform. By default, the "Frequency Range", "Start Frequency", "Stop Frequency", and "Resolution" fields can be seen. These options also configure the x-axis of the plot. +
- +
-Additional configuration options can be found by clicking on the drop down arrow to the right of these fields. These options include alternate Center/Span frequency range configuration parameters, Logarithmic/Linear scale select, and frequency bin count selector. +
- +
-Clicking on the gear button allows the user to select the acquisition algorithm (FFT or CZT). +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-control-bar.png?nolink&600 |}} +
-</WRAP> +
-</WRAP> +
----- +
-<WRAP group> +
-<WRAP column half> +
-==3.2.1 Configuration Pane - Magnitude== +
-To the right of the plot is the Configuration Pane. +
- +
-In the Magnitude section of the Configuration Pane, the plot's vertical axis units and range can be changed by selecting a value out of the particular field's dropdown, or by typing a new value, with units and SI prefix, into the field. +
- +
-/* Gear button has no relevant options? */ +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-magnitude.png?nolink&200 |}} +
-</WRAP> +
-</WRAP> +
----- +
-<WRAP group><WRAP column half> +
-==3.2.2 Configuration Pane - Range== +
-The "Range" field, below the Magnitude configuration options, can be used to specify the voltage range for the analog input channels. Selecting larger ranges may reduce the sample resolution. +
-</WRAP><WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-range.png?nolink&200 |}} +
-</WRAP></WRAP> +
----- +
-<WRAP group> +
-<WRAP column half> +
-==3.2.3 Configuration Pane - Channel Options== +
-Clicking on the Channel Options options button opens a menu that allows the user to configure the analog input channels and trigger condition. The voltage offset, voltage range, attenuation, and sampling modes of each analog input channel can be configured. +
- +
-The "Trigger" section of the Channel Options menu allows the user to specify a trigger event, around which samples will be captured and analyzed in the plot pane. By default, the instrument is configured to capture and analyze data whenever the signal applied to analog input channel 1 rises above 0V. +
-/* Cross Triggering */ +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-channel-options.png?nolink&200 |}} +
-</WRAP> +
-</WRAP> +
----- +
-<WRAP group> +
-<WRAP column half> +
-==3.2.4 Configuration Pane - Traces== +
-Below the "Channel Options" and "Add Trace" buttons are the Trace configurations. +
- +
-By default, Trace 1 and Trace 2 correspond to analog input channel 1 and analog input channel 2, respectively. To change the Trace's input channel, click the drop down arrow to the right of the Channel text field. The "Hold" channel can be used to preserve previously-captured data in the plot, for comparison to newly-captured data. +
- +
-The Type dropdown is used to select the how and when the acquired data is updated, including various kinds of averaging schemes, by default the trace is updated whenever new data is captured. +
- +
-The gear icon in the top right of the Trace window can be used further configure the Trace, with color, name, label, and windowing technique options. To remove a Trace, click the red X to the right of the gear icon. +
- +
-Additional Traces can be added to the //Spectrum Analyzer// instrument by clicking on the "Add Trace" button. Adding a "Reference Trace" copies an already-existing trace, with the Channel option changed to "Hold" (see above). +
-</WRAP> +
-<WRAP column half> +
-{{ :learn:instrumentation:tutorials:analog-discovery-studio-spectrum-analyzer:spectrum-trace.png?nolink&200 |}} +
-</WRAP> +
-</WRAP> +
----- +
-FIXME PLOT - QUICK MEASURE \\ +
----- +
-FIXME PLOT - CURSORS \\ +
----- +
-FIXME FILE MENU \\ +
----- +
-FIXME VIEW MENU \\ +
----- +
- +
-==== Next Steps ==== +
- +
-For technical support, please visit the **Scopes and Instruments** section of the Digilent Forums. FIXME link +
- +
-More guides to using the wide variety of features included in WaveForms can be found through the FIXME resource center. +
- +
----- +
- +
-{{tag>tutorial analog-discovery-studio}}+