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.

FFT waveform in Code composer



Gooday, I am running PM_SENSORLESS (BUILD 6) example code on the DRV8312-C2-kit and debugging bith code composer v6. 

I want to calculate the total harmonic distortion (THD) of the current signals being sensed by the ADC therefore i used to FFT_magnitude graph in ccs to view the harmonic content of the current signals. However, there is no way for me to know the unit of the y-axis. I've attached a screenshot of the waveform along with the graph properties. Any idea on how i can use it to calculate the THD? 

Any feedback is appreciated 

-Jason

  • Hi,

    I dont think you can dump the data from this graph to disk. What you could do is use one of the DSP libraries we provide and compute the complex FFT on the device itself, and then dump the data from the memory browser window. You would open up the memory browser at DLOG_4CH_buf1 (wherever you compute the FFT) and then there should be a "save to disk" icon in the upper right hand corner of the mem browser window.