cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

CFFT and a sanity check

JXBWk
14-Alexandrite

CFFT and a sanity check

to all

 

Doing a sanity check on the CFFT for another spectrum analyser in a 1/3 party tool

If one has a sine wave Asin(w*t) then a spectrum analysis will return an amplitude a=A/2 at w (or f= 2piw) . Am I correct?

Therefore if one only has the spectrum as an output (and not the original time signal) then one can read the frequency (w or f ) and conclude that the sine wave at the freq (in the time signal )has a peak value 2a!

 

Thanks in advance

John

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:JXBWk)

The output of all discrete Fourier transform functions is scaled.

Apparently dft (and dftr) is scaled by n/2, where n is the number of samples of the input vector:

LucMeekes_1-1693135975407.png

You can investigate that by changing Tobs, Fs and A1.

 

Success!
Luc

 

View solution in original post

6 REPLIES 6
LucMeekes
23-Emerald III
(To:JXBWk)

Mathcad (the real thing) used to have several implementations of the discrete Fourier transform:

fft, cfft, FFT and CFFT. they differ in scaling factor and whether or not they work with arbitrary sized vectors or 2^n size.

In Prime these functions are deprecated (but may still work), and the preference now is to use the dft and dftr functions.

In the online help (search term CFFT) you can find an overview and comparison of all these functions.

 

Success!
Luc

JXBWk
14-Alexandrite
(To:LucMeekes)

Thanks

Looking at the example: Example: Filtering in the Frequency Domain  especially the one 'Signal without Noise'. Playing with the input signal as per the example one can see the frequencies (of the signal changing (if one changes the w values) but the peaks value are odd. the the amptidues of both wave is 1 then 300 is returned as apeak, ampltidue 0.1 peaks ais 250

Jsut not sure what the tool/function is doing here. 

Ultimatly one is lookgin to get the spectrum of the signal 

 

LucMeekes
23-Emerald III
(To:JXBWk)

The output of all discrete Fourier transform functions is scaled.

Apparently dft (and dftr) is scaled by n/2, where n is the number of samples of the input vector:

LucMeekes_1-1693135975407.png

You can investigate that by changing Tobs, Fs and A1.

 

Success!
Luc

 

JXBWk
14-Alexandrite
(To:LucMeekes)

Thanks a lot. Played with the example and seems to work

so in Prime 8 (in this case) if one has a signal sampled at say t=0.0005 (time, response) how does the dft() works? Just using dft(response) returns rubbish as far as I can tell

LucMeekes
23-Emerald III
(To:JXBWk)

Don't understand your problem description.

A signal sampled at t=0.0005 gives a single sample. You need at least 2 samples to do a dft.

Please provide a worksheet.

 

Success!
Luc

 

ttokoro
20-Turquoise
(To:JXBWk)

image.pngimage.png You can get true magnitudes(=1) for both cos and sin waves.

Announcements

Top Tags