Configure Different Carrier Frequency of NI-USRP During Runtime

Updated Oct 2, 2024

Environment

Driver

  • NI-USRP

The overall carrier frequency is realized in hardware as a combination of frequency translation in the local oscillator (LO) and additional frequency translation implemented in the digital signal processing on the FPGA. From the shipping example, the carrier frequency is configured before the run button is pressed in LabVIEW. In this article, you will be shown on how to modify a code to configure the carrier frequency settings on the fly. The hardware used is USRP-2953R. 

  1. Get any NI-USRP shipping examples for transmission. You will see this configuration being made at the earlier part of the code.
    image.png
  2. In addition to the first configuration made, you would need to add another configuration that can work during runtime, which means the control needs to be in the While Loop. You can add the property nodes to be in the loop but still need to specify the Active Channel to differentiate the settings for each channel.
    image.png
  3. Note that the feedback node is applied so that the changes will only be applied if there's a change in the value of the Carrier Frequency control. If there's no change, it will reuse the previous value.

  4. Using this setup also allows you to change the frequency independently between the first and second channels on-the-fly.