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.

Display sine-wave graphically, CCS 5

Hi,

 

I would like to display the 1-MHz sine-wave graphically in CCS 5.

The sine-wave array size is 400.

In "Graph Properties", I set:

Acquisition Buffer Size: 512

Display Data Size: 512.

Sampling Rate Hz: 5e6

Start Address: 0x800072E0

 

However, the graph is not a sine-wave.

I want to know that can I set 'Start Address' as the name of array or '& name of variable' ?

 

In addition, the FFT shape seems correct, but with very huge magnitude.

 

 

 

Thanks for your guidance.

PP

  • Hi,

    Usually inconsistent or bad looking data are caused by a misconfiguration of the data type (signed/unsigned, 8/16/32-bit data), therefore I would carefully inspect this beforehand. A tip to debug this is at this thread.

    XX PP said:

    I want to know that can I set 'Start Address' as the name of array or '& name of variable' ?

    Yes, you can set it to a variable name. Check this thread.

    XX PP said:

    I would like to display the 1-MHz sine-wave graphically in CCS 5.

    It is not clear if you are buffering this data or trying to capture this on-the-fly through breakpoints. If the second option please check this thread, which explains why you shouldn't expect a 1MHz sample to be correctly displayed. 

    If you haven't done so, I would also follow the graph plotting steps described in the section Project Debugging of the CCSv5 Getting Started Guide.

    Hope this helps,

    Rafael

  • Yes, when the data type is changed to 64 bit floating point, the sine-wave could be shown.

    However, the corresponding FFT plot is blank.

    In addition, how can we change the x-axis from sample to actual time?

     

    Thanks,

    PP