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.

synchronize the buffer to single time graph plot in CCS5

Hi,

I am using a buffer of size [1000] and single time plot property in CCS 5. I would like to know if it is possible to sync. the graph with the buffer such as the buffer is plotted after writing the last word to it before it wrap around. As you can see in the figure below there is a dip in the graph which is an old value in the buffer.

Thanks,

Nezar

  • Nezar,

    The real problem is that the buffer is not sync'd with the data going into the buffer.  The graph plots the buffer from element 0 to 999.  You cannot control when CCS updates the graph with respect to your code execution.  If you want the graph to display a static waveform, you need to match the buffer length to an integer multiple of the waveform period.  That way, the waveform phase in the buffer remains static.

    Usually, people will just deal with the graph the way it is.

    Regards,

    David