Code covered by the BSD License  

Highlights from
iPower: Interactive Power Spectrum Demonstrator, Version 2

4.0

4.0 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 4.54 KB File ID: #31462
image thumbnail

iPower: Interactive Power Spectrum Demonstrator, Version 2

by Tom O'Haver

 

16 May 2011 (Updated 31 Oct 2011)

Keyboard-controlled self-contained interactive power spectrum demonstrator with sound output.

| Watch this File

File Information
Description

Keyboard-controlled interactive power spectrum demonstrator, useful for teaching and learning about the power spectra of different types of signals and the effect of signal duration and sampling rate. Single keystrokes allow you to select the type of signal (12 different signals included), the total duration of the signal, the sampling rate, and the global variables f1 and f2 which are used in different ways in the different signals. When the Enter key is pressed, the signal (y) is sent to the Windows WAVE audio device. Press K to see a list of all the keyboard commands.
T. C. O'Haver (toh@umd.edu), Version 2, October, 2011. Added: 'Y' key cycles through 4 plot modes: linear x,y. linear x, log y; log x, linear y; and log-log. 'H' key switches between frequency and period x scale on power spectrum graph in lower window.

KEYBOARD CONTROLS:
 Adjust signal duration 10% up/down......A,Z
 Adjust sampling rate 10% up/down........S,X
 Adjust first variable 10% up/down...... D,C
 Adjust second variable 10% up/down..... F,V
 Cycle through Linear/Log plot modes.......L
 Switch X-axis scale of power spectrum.....H
 Print keyboard commands...................K
 Play signal as sound.............Enter or P
                    
SIGNAL TYPES
` Sine wave, frequency f1 (Hz), phase f2
1 Square wave, frequency f1 (Hz), phase f2
2 Sawtooth wave, frequency Ff1(Hz)
3 Triangle wave, frequency f1 (Hz), phase f2
4 Sine wave burst of frequency f1 (Hz) and length f2 sec
5 440 Hz carrier amplitude modulated by sine wave, frequency f1 (Hz) and amplitude f2
6 440 Hz carrier frequency modulated by sine wave of frequency f1 (Hz) and amplitude f2
7 Sine wave, frequency f1 (Hz), modulated with Gaussian of width f2 sec
8 Sine wave, frequency f1 (Hz) with non-linear transfer function f2
9 Sine wave sweep from 0 to f1 (Hz)
0 Sine wave of frequency f1 (Hz) and amplitude f2 plus random white noise
- Pink (1/f) noise
= Sine wave, frequency f1 (Hz), amplitude f2 plus pink noise

Acknowledgements

Interactive Power Spectrum Demo, Version 2 inspired this file.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
audio(2), communications, demo, measurement(2), signal processing, simulation, teaching
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
26 Oct 2011 ehsan  
26 Oct 2011 ehsan

very good

Updates
17 May 2011

Expanded description

26 May 2011

Corrected typos in description; added tags.

06 Oct 2011

Modified description

31 Oct 2011

Version 2, October, 2011. Added: 'Y' key cycles through 4 plot modes: linear x,y. linear x, log y; log x, linear y; and log-log. 'H' key switches between frequency and period x scale on power spectrum graph in lower window.

Contact us