FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-10-2006, 01:16 PM
Bum
Guest
 
Posts: n/a
Default Power Spectral Density Code

Does anyone know of a PSD calculating routine other than in Matlab?

I'm trying to find something I can include into vb 6.0 or vb.net...perhap
a dll, activeX, or the code itself! Unfortunately I'm not versed in th
realms of PSD enough to write my own. I do use a routine from nationa
instruments DSP toolbox called Auto Power Spectrum which gives the aut
power spectrum (whatever that is) in E.U. rms^2 (like G rms^2). Would i
be correct to say there is a way to convert this to G rms^2/Hz? I have a
fft routine that I can use in the calculation if necessary. Any help woul
be greatly appreciated.

Thanx,

B



Reply With Quote
  #2 (permalink)  
Old 02-10-2006, 03:24 PM
James
Guest
 
Posts: n/a
Default Re: Power Spectral Density Code


"Bum" <[email protected]> skrev i en meddelelse
news:[email protected] ...
> Does anyone know of a PSD calculating routine other than in Matlab?
>


I assume you are familiar with complex numbers.

If you have a sequence x of numbers where x(1) is the first number and x(N)
is the last number in
your sequence then you can calculate the power spectrum X like this:

for k=1 to N
tmp_sum=0
for n=1 to N
tmp_sum=tmp_sum+x(n)*exp(-j*2*pi*(k-1)*(n-1)/N)
end
X(k)=abs(tmp_sum)^2
end

It's not an optimal way of doing it, but it's straightforward and easy to
understand.



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PSD Power Spectral Density JoseBioeng DSP 1 12-23-2005 10:38 PM
MATLAB code for Power Spectral Density ngeva0 DSP 11 12-12-2005 02:23 AM
Power Spectral density khmaies DSP 14 11-08-2005 03:54 PM
The relationship between power density and power spectral density [email protected] DSP 3 09-14-2005 02:39 PM
Power Spectral Density Question Peter Simon DSP 1 11-12-2004 02:24 PM


All times are GMT +1. The time now is 01:56 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved