Spectrum Analyzer

From SweepMe! Wiki
(Redirected from SpectrumAnalyzer)
Jump to navigation Jump to search

The SpectrumAnalyzer module returns a spectrum of power values over frequency at each measurement point. The drivers return the variables "Frequency" in Hz and "Power" in dBm. This makes the module ideal for characterizing frequency-domain electrical signals. For optical spectrometers, refer to the Spectrometer module.

This module applies to a wide range of instruments, including:

  • RF/microwave spectrum analyzers for electrical signal analysis

Usage

The section "Options" contains the following fields. Which fields are available and which options they offer depends on the driver.

  • Frequency range: select "Center frequency in Hz:" and "Frequency span in Hz:", or "Min frequency in Hz:" and "Max frequency in Hz:", and enter the values (default 1E9 and 20E6).
  • Reference level in dBm: the maximum expected power. Choose a higher value to avoid saturation or a lower value to increase the sensitivity.
  • Resolution bandwidth: a lower value gives a higher resolution, a higher value a faster measurement.
  • Video bandwidth: smooths the displayed power spectrum.
  • Trace mode: e.g. "Current", "Max hold", "Min hold" or "Average".
  • Hold time in s or Repetitions: the integration of the trace mode.
  • Video averaging: switches video averaging on or off.

Further fields defined by the driver are shown in the section "Parameters".

Driver programming

To implement support for new hardware, drivers inherit from EmptyDevice and implement standard functions such as initialize(), apply(), and call(). See Driver Programming for detailed instructions. For developing your own driver, you can use the SpectrumAnalyzer-Simulation_Driver as a template. It offers a basic implementation with simulated spectrum output and is an excellent starting point for custom development.

GUI Parameter

GUI field GUI parameter key Widget, value returned by the driver
Center/Min frequency label Frequency label 1 ComboBox, list of labels, e.g. "Center frequency in Hz:", "Min frequency in Hz:"
Center/Min frequency value Frequency value 1 LineEdit, default value
Span/Max frequency label Frequency label 2 ComboBox, list of labels, e.g. "Frequency span in Hz:", "Max frequency in Hz:"
Span/Max frequency value Frequency value 2 LineEdit, default value
Reference level in dBm Reference level in dBm LineEdit, default value
Resolution bandwidth Resolution bandwidth ComboBox, list of options
Video bandwidth Video bandwidth ComboBox, list of options
Trace mode Trace mode ComboBox, list of options, e.g. "Current", "Max hold", "Min hold", "Average"
Trace mode integration type Trace mode integration type ComboBox, list of labels, e.g. "Hold time in s:", "Repetitions:"
Trace mode integration Trace mode integration LineEdit, default value
Video averaging Video averaging CheckBox, bool

In addition, you can define custom parameters using the flexible Parameters section. Any additional parameters added here will automatically appear in the section "Parameters" of the module GUI. This is especially useful for parameters specific to your instrument or measurement setup.