Example Code

RFSA Spectrum with Peak Search Display

Code and Documents

Attachment

Overview

This example finds the peak(s) in a spectrum from an NI-RFSA analyzer (NI PXIe-5665, NI PXIe-5840, NI PXIe-5653, etc).  This is primarily a tool for interactive use, but could be adapted for programmatic use.

 

Description

Cuts away the clutter, displaying peak measurements right on the spectrum graph.  Measures highest N peaks, all peaks above a threshhold, peaks near a list a frequencies, and (this one is my favorite) all peaks that are significantly above the noise floor.  The noise floor power level and width are determined automatically from the data.  This could be useful for programmatic spur hunting.  See block diagram for details on how it's done. 

 

Hardware and Software Requirements

LabVIEW 2015 or later

NI-RFSA 15.0 or later

Vector signal analyzer supported by NI-RFSA (NI PXIe-5665, NI PXIe-5840, NI PXIe-5653, etc).

 

Steps to Implement or Execute Code

Select analyzer name, run.  Change the Peak Display "enum" (this is really a tab control, with the tabs hidden) to show/hide the other relevant controls.

 

Right-click on the peak power measurement text for the option to:

   - move the selected peak to the center frequency.

   - make the selected peak the dBc Reference.  This changes the power measurements from dBm to dBc.  Set the dBc Reference control back to 0 to revert to dBm.

 

Additional Information or References

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors