Example Code

NI-RFSA: FM Radio Receiver

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • PXI|VXI
  • RF|Wireless

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example will demodulate an FM RF signal and play the resulting waveform through your computers speakers.

 

Description

This example demonstrates how to use the NI-RFSA API and the Spectral Measurements Toolkit to turn a National Instruments RF Vector Signal Analyzer or a RF Vector Signal Transceiver into a software defined FM radio receiver. The device monitors the spectrum from 88-108 MHz and can play back any FM radio stations detected therein. It continuously acquires and FM demodulates data, while playing the audio signal back via a sound card and set of speakers.

 

This example can be used in conjunction with the NI-RFSG: FM Radio Transmitter example.

 

Requirements

1. LabVIEW 2012 or compatible
2. NI RFSA
3. Advanced Signal Processing Toolkit
4. Spectral Measurements Toolkit
5. NI Signal Analyzer

 

Steps to Implement or Execute Code
1. Open the "FM Radio Receiver LV2012 - NI Verified.vi"
2. Choose a valid RFSA resource on the front panel.
3. Set the desired center frequency and reference level.
4. Run the VI.
5. Select the desired frequency from the Peaks control. You can adjust the threshold level by moving the red line to determine what peaks are included in this control.
6. Press Play and adjust the Volume knob to the desired level.
7. Press Power to stop the VI.

 

Additional Information or References

Block Diagram Image.jpg

 

Josh B
Applications Engineer
National Instruments

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