This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28335: How to plot PSD and where to find its code for CCS V6

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Sir,

I am using CCS V6.

I have the code for performing FFT of my n point field signal, using example program given in control suite.  but i am unable to plot the fft magnitude graph correctly, what value should i write in acquisition buffer size,in graph property  and also, i needed code for finding PSD from it. How to write that code for plotting psd?

  • Firdaus,

    First of all, I suggest moving to C2000Ware.

    Next, graphing can be done using the .graphProp files, a CCS debug session should be open, and Tools-Graph-<desired graph> chosen, and the button at the bottom “Import” should be selected. You are expecting to look at the FFT magnitude plot, but do not select <FFT magnitude> (!) as this would be CCS’s FFT utility. Instead, you should select <Single time> as CCS is simply plotting the values “as is”, and the buffer being plotted already contains the FFT magnitude values. And,if the plot does not display properly initially, right-click and select “Reset Auto Scale” in order for it to display correctly.

    Acq buf size = size of FFT magnitude buffer - please look it up in the code. It should be half the FFT size.

    Thanks,

    Sira