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 graph setup for debug data

Hi,

i'm running the IntraSpin software on my launchpad and try to display the current and voltage on each phase of my motor. i setup the variable monitor in the main function and i seems getting the right values during debug. but when i try to display these values in the CCS graph, i did not get the waveform i expected. here is some pictures:

1st picture: top: variables that store adc reading during debug; middle: variables during debug; bottom: graphic display of one of the variable (I_a)

2nd picture: the graph setting. i'm not very sure about the meaning of the sample rate, but i tried from 1 to 15k, no effects, always get the same plots.

any hint?

  • Hi,

    If I did not miss anything, can you try to set the Acquisition Buffer Size to 1? With the current settings it is in fact collecting the data in chunks of 300 32-bit words starting at the address of gMotorVars.I_a.

    Hope this helps,

    Rafael

  • buffer=1 works better, now the graph plot matches the debug parameter. but it seems the sampling rate (or the data's update rate) is not fast enough to display the waveform correctly. i wonder if data update rate can be set anywhere
  • Hi,

    Unfortunately no. The display data rate is either set via a breakpoint at a given line (which would cause the graph to be updated at a given point of your code) or, if you enable "Continuous Refresh", it will update continuously at a rate of about 1 second. However, the "Continuous Refresh" updates will happen at random places of your code.

    For a way to set up breakpoints that continuously update the graph, check section 3.5 of the page below:
    http://processors.wiki.ti.com/index.php/GSG:Debugging_projects_v5

    Hope this helps,
    Rafael