Hello 
I have a problem with calculating the Power Spectrum Density (PSD). Unfortunately CVI does not have this funktion. So I must calculate the function by myself. 
My customer explained me the algorithm and I managed it by calling the function "AutoPowerSpectrum" with some additional calculation (see below). 
We tested the program and found out, that "AutoPowerSpectrum" always calculates RMS values. My customer wants to have real amplitude values. 
Can someone here explain to me, what I must change? Must I implement my own "AutoPowerSpectrum" function, or is there a way to calculate it with CVI function?
Here is my code
AutoPowerSpectrum (gBuf, 2048, dt, ps, &df);
for (i=0; i<2048; i++)
{
    ps[i] = fabs(ps[i] / df);
}
wher
e 
  gBuf    is the input array
  2048    is the count of 
  dt        is the sample period in seconds
  ps       is the output array (single-sided power spectrum)
  df       is the frequency interval, in hertz, if dt is in seconds.
    
Thanks in advance 
 
Stephan Gerhards