Using the USRP Device as a Receiver

NI-USRP Help

Edition Date: March 2018

Part Number: 373380J-01

»View Product Info
Download Help (Windows Only)

The niUSRP EX One Shot Rx VI connects to a USRP device and uses it as a receiver.

  1. Open the niUSRP EX One Shot Rx VI.
    1. Select Start»All Programs»National Instruments»NI-USRP»Examples»LabVIEW to open the folder containing the example VIs.
    2. Double-click niUSRP EX One Shot Rx.vi to open the VI in LabVIEW.

      Alternately, you can navigate to <Program Files>/National Instruments/LabVIEW/examples/instr/niUSRP/ and double-click niUSRP EX One Shot Rx.vi to open the VI in LabVIEW. If you are using a 64-bit operating system, open niUSRP EX One Shot Rx.vi from the <Program Files (x86)>/National Instruments/LabVIEW/examples/instr/niUSRP/ModulationToolkitExamples folder.The following figure shows the front panel of the VI.

      niUSRP EX One Shot Rx VI Front Panel

    Note Note  To run this example, your connected device must have an installed daughterboard that can act as a receiver. The default values shown in the preceding figure are appropriate for a USRP-2920 device.
  2. Examine the front panel input controls and specify values appropriate for your device.
    • device names—String control that specifies the IP address for a device connected to your computer. The default value 192.168.10.2 connects the instrument driver to the device at IP address 192.168.10.2. Update the string to match the IP address of your connected device.
    • IQ Sampling Rate [S/sec]—Numeric control that specifies the baseband (I/Q) sampling rate, in samples per second (S/s), for the acquired signal. The device initially samples the incoming signal at the sample rate of your device and downconverts the resulting samples to the baseband (I/Q) sampling rate that you specify here.
    • Carrier Frequency [Hz]—Numeric control that specifies the carrier frequency, in hertz, for the acquired signal. Enter a valid value for your device. If you enter a value outside the available frequency range for your device, NI-USRP coerces the value to the closest available frequency.
    • Gain [dB]—Numeric control that specifies the receiver gain setting for your device. Refer to the documentation for your device for the available range of settings. If your device does not have variable gain, NI-USRP ignores the value for this control.
    • Active Antenna—String control that specifies the antenna connector to use for the receiver. Enter a string that corresponds to the designator for your device. For example, if you use the USRP-2920 device, enter RX1 or RX2.
  3. Click the Run button on the toolbar, shown as follows, to run the niUSRP EX One Shot Rx VI.

    env run

    When you run the VI, NI-USRP sends the values you specified in the controls to the device, sets the device parameters based on these values, then returns the resulting parameters to the corresponding indicators. The values returned to the indicators may differ from the values you specified in the controls depending on the capabilities of your device. For example, if you specify a frequency value for Carrier Frequency [Hz] that is outside the available frequency range for your connected device, NI-USRP coerces the value to the closest available frequency and returns the coerced value to Carrier Frequency [Hz] (actual).

WAS THIS ARTICLE HELPFUL?

Not Helpful