RF Hardware Example: Phase Shift Keying
Overview
This lab is designed to examine the Phase Shift Keying (PSK) digital modulation scheme. Fundamentally, digital modulation requires changing characteristics of the carrier wave over time. Each change results in a sine wave with a different phase, amplitude, or frequency than before. As a result, different “states” of the sine wave are referred to as symbols which represent some digital bit pattern. In this exercise, we will construct LabVIEW VIs that transmit and receive a digital bit stream using PSK.
Downloads
Filename: rfsa_psk_eye_diagram.vi
Requirements: View
Filename: rfsg_generate_psk.vi
Requirements: View
Background:
Below is a constellation plot that shows the symbol map for 8-PSK. Here each of the 8 symbols (shown as white dots) represents 3-bits of digital data. Notice that all of the symbols are at the same amplitude, and it is the phase that differentiates them. Also notice that the each symbol is equally spaced in phase across the unit circle.
Programming:
Generation
1a. Open a session to the NI-RFSG.
1b. Calculates parameters for use with the MT Modulate PSK VI.
2a. Set the sample rate.
2b. Generate phase continuous PSK signal with complete PN cycle.
3. Configure the frequency and output power.
4. Enable IQ Generation.
5. Resample the PSK signal to the new sample rate and write it. While doing the resampling it is ensured that the signal's phase continuity is maintained and that the resulting number of samples is a multiple of the quantum.
6. Initiate generation according to programmed settings.
7. Check the generation status and exit if an error has occurred.
8. Disable the output. This sets the noise floor as low as possible.
9. Close the session to the NI-RFSG.
Acquisition
1. Initialize the downconverter and the digitizer.
2. Set the PSK system parameters. Several types of PSK are preconfigured via the case structure. You can also define your own custom type of PSK.
3. Set the reference level of the 5600 to the expected max input level, for best signal to noise. Configure the horizontal subsystem of the digitizer. The MT Configure Downconversion Settings VI takes in the user parameters and determines the correct sample rate and number of samples to acquire.
4. Generate the filter coefficients for the demodulator.
5. Determine a bandwidth based on the input symbol rate and filter parameters. The 1.1 factor in the default case provides a small cushion for carrier offset.
6. Acquire and downconvert (if necessary). The data coming out of the 5620 can be IF or interleaved I - Q, depending on whether the DDC is used. The data coming out of MT Convert IF to IQ is always I - Q represented as a complex signal.
7. Resample the signal. The demodulator requires an integer number of samples per symbol. MT Fractional Resample resamples the data to satisfy this condition. Set the new sample rate to Fs' = (symbol rate)*(samples per symbol).
8. Demodulate. The "recovered waveform" output of the demodulator is equivalent to the input with frequency and phase offsets removed, and the first sample corresponds to an ideal symbol time.
9. Calculate measurements on the recovered waveform.
10. Format and display the trellis diagram
11. Use the Event Structure to control the loop structures. A time-out event (Event [0]) reads the "stop" button, and all loops will exit if the "stop" = TRUE. If stop is FALSE, and there is no error, the inner loop will run again. If any controls in the middle loop change, Event [1] will fire, the inner loop will exit, and the middle loop will run again. If any controls in the outer loop change, Event [2] will fire, both the inner and middle loops will exit, and the outer loop will run again.
12. If the middle loop exits, the instrument handles and the receiver info will be closed. The new handles will be opened if the outer loop runs again.
Requirements
Filename: rfsa_psk_eye_diagram.vi
Software Requirements
Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW Modulation Toolkit 3.1
Hardware Requirements
Hardware Group: PXI/CompactPCI, RF
Hardware Model: PXI-5661
Driver: NI-RFSA 2.0
Software Requirements
Application Software: LabVIEW Full Development System 7.1
Toolkits and Add-Ons: LabVIEW Modulation Toolkit 3.1
Hardware Requirements
Hardware Group: PXI/CompactPCI, RF
Hardware Model: PXI-5671
Driver: NI-RFSG 1.3
Reader Comments | Submit a comment »
how we can download the software
toolkit 3.1?
- gurlz_redland86@yahoo.com - Feb 28, 2008
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
