From MATLAB and Simulink to Real Time with
![From MATLAB® and Simulink® to Real Time with TI DSPs • Spectrum Estimation Content From MATLAB® and Simulink® to Real Time with TI DSPs • Spectrum Estimation Content](https://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-1.jpg)
From MATLAB® and Simulink® to Real Time with TI DSPs • Spectrum Estimation Content developed in partnership with Tel-Aviv University © 2007 Texas Instruments Inc, 0 -1
![Preface • Our Goal is to Estimate the Spectrum of stochastic processes • We Preface • Our Goal is to Estimate the Spectrum of stochastic processes • We](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-2.jpg)
Preface • Our Goal is to Estimate the Spectrum of stochastic processes • We are concentrating in AR-Processes • 3 methods of Estimation will be discussed: Periodogram, Burg and M-Covariance © 2007 Texas Instruments Inc, Slide 2
![AR Basics • An Auto-Regressive (AR) process is commonly described as White Noise filtered AR Basics • An Auto-Regressive (AR) process is commonly described as White Noise filtered](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-3.jpg)
AR Basics • An Auto-Regressive (AR) process is commonly described as White Noise filtered by an all-pole LTI system: • Frequency domain characteristics: – The AR Process Spectrum is given by: Where: © 2007 Texas Instruments Inc, Slide 3
![AR Basics cont. • Time Analysis of the process (of order k): – every AR Basics cont. • Time Analysis of the process (of order k): – every](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-4.jpg)
AR Basics cont. • Time Analysis of the process (of order k): – every sample has correlation with at most k previous samples – The autocorrelation function looks like: – For every n<-k or n>k holds: © 2007 Texas Instruments Inc, Slide 4
![Estimation Methods • 3 Methods: – Periodogram – Burg – M-Covariance • Our Goal: Estimation Methods • 3 Methods: – Periodogram – Burg – M-Covariance • Our Goal:](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-5.jpg)
Estimation Methods • 3 Methods: – Periodogram – Burg – M-Covariance • Our Goal: – Given a finite buffer of samples of the stochastic process estimate its spectrum • Assumption: – The process is mean Ergodic and Correlation Ergodic © 2007 Texas Instruments Inc, Slide 5
![Periodogram • The Periodogram block computes a nonparametric estimate of the spectrum. The block Periodogram • The Periodogram block computes a nonparametric estimate of the spectrum. The block](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-6.jpg)
Periodogram • The Periodogram block computes a nonparametric estimate of the spectrum. The block averages the squared magnitude of the FFT computed over windowed sections of the input and normalizes the spectral average by the square of the sum of the window samples. © 2007 Texas Instruments Inc, Slide 6
![The Modified Covariance Method • The Modified Covariance Method block estimates the power spectral The Modified Covariance Method • The Modified Covariance Method block estimates the power spectral](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-7.jpg)
The Modified Covariance Method • The Modified Covariance Method block estimates the power spectral density (PSD) of the input using the modified covariance method. This method fits an autoregressive (AR) model to the signal by minimizing the forward and backward prediction errors in the least squares sense. The order of the all-pole model is the value specified by the Estimation order parameter. To guarantee a valid output, you must set the Estimation order parameter to be less than or equal to two thirds the input vector length. The spectrum is computed from the FFT of the estimated AR model parameters. © 2007 Texas Instruments Inc, Slide 7
![Burg Method • The Burg Method block estimates the power spectral density (PSD) of Burg Method • The Burg Method block estimates the power spectral density (PSD) of](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-8.jpg)
Burg Method • The Burg Method block estimates the power spectral density (PSD) of the input frame using the Burg method. This method fits an autoregressive (AR) model to the signal by minimizing (least squares) the forward and backward prediction errors while constraining the AR parameters to satisfy the Levinson-Durbin recursion. © 2007 Texas Instruments Inc, Slide 8
![Hands-On • Simulation • Implementation using the DSK 6713 • GUI to handle the Hands-On • Simulation • Implementation using the DSK 6713 • GUI to handle the](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-9.jpg)
Hands-On • Simulation • Implementation using the DSK 6713 • GUI to handle the R-T implementation © 2007 Texas Instruments Inc, Slide 9
![Simulation • The coefficients are known for the model • Internal generation of the Simulation • The coefficients are known for the model • Internal generation of the](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-10.jpg)
Simulation • The coefficients are known for the model • Internal generation of the true spectrum • Generation of the AR signal using white noise and allpoles filter • Comparison between all 3 methods in the model (to one another and to the true spectrum • The results are presented using the frequency domain © 2007 Texas Instruments Inc, Slide 10
![The Simulation Environment • Simulation involves the 3 methods simultaneously © 2007 Texas Instruments The Simulation Environment • Simulation involves the 3 methods simultaneously © 2007 Texas Instruments](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-11.jpg)
The Simulation Environment • Simulation involves the 3 methods simultaneously © 2007 Texas Instruments Inc, Slide 11
![Real-Time Environment • Based on the Simulation model • R-T Implementation contains 3 model Real-Time Environment • Based on the Simulation model • R-T Implementation contains 3 model](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-12.jpg)
Real-Time Environment • Based on the Simulation model • R-T Implementation contains 3 model files, each implements different method separately • We will present the Top-Down Architecture of the Real-Time solution © 2007 Texas Instruments Inc, Slide 12
![Real Time Environment (cont. ) PC RTDX CODEC Line Out Line In Signal Generator Real Time Environment (cont. ) PC RTDX CODEC Line Out Line In Signal Generator](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-13.jpg)
Real Time Environment (cont. ) PC RTDX CODEC Line Out Line In Signal Generator A/D (Left) All-pole Filter Spectrum Estimator D/A (Left) White Noise Generate Reference Spectrum D/A (Right) Oscilloscope TMS 320 C 6713 DSK 6713 © 2007 Texas Instruments Inc, Slide 13
![Real Time Environment (cont. ) • R-T model using Periodogram Estimation: © 2007 Texas Real Time Environment (cont. ) • R-T model using Periodogram Estimation: © 2007 Texas](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-14.jpg)
Real Time Environment (cont. ) • R-T model using Periodogram Estimation: © 2007 Texas Instruments Inc, Slide 14
![GUI Functionality • Using Matlab GUI and TI libraries we will show to build GUI Functionality • Using Matlab GUI and TI libraries we will show to build](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-15.jpg)
GUI Functionality • Using Matlab GUI and TI libraries we will show to build a gui that enables the user to control the model easily • The GUI involves RTDX calls to negotiate with the DSK in R-T • The RTDX is a proprietary interface that enables the Host to send/receive data to the dsk in R-T • The GUI enables the user to perform the following operations: – Reloading a model (3 optional Estimation methods) © 2007 Texas Instruments Inc, Slide 15
![The System Spectrum Noise Estimated Spectrum © 2007 Texas Instruments Inc, Slide 16 The System Spectrum Noise Estimated Spectrum © 2007 Texas Instruments Inc, Slide 16](http://slidetodoc.com/presentation_image_h/f924fc3bc933e297b46f72b0398609fb/image-16.jpg)
The System Spectrum Noise Estimated Spectrum © 2007 Texas Instruments Inc, Slide 16
- Slides: 16