Overview
The NI-USRP driver includes several pairs of VIs, such as the niUSRP EX QAM Rx VI and the niUSRP EX QAM Tx VI, that demonstrate how to establish a digital link between two devices to transmit (Tx) and receive (Rx) signals. These examples show one way you can use Modulation Toolkit VIs to establish digital communication links. Tx examples use Modulation Toolkit VIs to generate a PN sequence message, map the bits of this message to symbols, and apply a pulse-shaping filter. Rx examples use Modulation Toolkit VIs to demodulate the acquired signal, performing operations such as frequency/symbol synchronization, and bit recovery.
Instructions
- Open the niUSRP QAM Rx VI from the (Program Files)/National Instruments/LabVIEW/examples/instr/niUSRP/ModulationToolkitExamples folder. If you are using a 64-bit operating system, open the niUSRP EX QAM 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.
- Open the niUSRP EX QAM Tx VI from the (Program Files)/National Instruments/LabVIEW/examples/instr/niUSRP/ModulationToolkitExamples folder. If you are using a 64-bit operating system, open the niUSRP EX QAM Tx VI from the (Program Files (x86))/National Instruments/LabVIEW/examples/instr/niUSRP/ModulationToolkitExamples folder. The following figure shows the front panel of the VI.
- Examine the front panel input controls for the VIs.
- device name—Both the Rx and Tx VIs include the device names string control, which specifies an IP address for the device connected to your computer. Set these controls for the separate devices connected to your computer. Use strings with the format: x.x.x.x, where x.x.x.x is the IP address that corresponds to your transmitter and/or receiver.
The values for the following controls, shown in the previous two figures, are appropriate for the USRP-2920 device:
- Carrier Frequency [Hz]
- Gain [dB]
- Active Antenna
- Modify the front panel controls according to the specifics of the device(s) and antenna(s) installed in your setup. To establish a link between your transmitter and receiver, set corresponding controls and indicators on the Rx and Tx VIs to the following values:
- Start the Tx VI, then start the Rx VI. Click the Run button on the toolbar of each VI to run the VIs.