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.

Question about graph tool

Hello:

I am still not very familiar with the graph settings from tool->graph.

 

I want to display two arrays of data in the graph, but why the graph always shows me this ugly shape?

 

  • Hi,

    This is due to the graph update rate does not match with array update rate.

    Regards,
    Gautam
  • Could you please tell me what's the meaning of "graph update rate" and "array update rate"? They are sampling rate? You mean the sampling rate should be the same?

    How could I set the parameter?

    Most of the time, I only set buffer size as default?
    This is just an array carrying ten digits. How to set the sampling rate?

    Thanks
  • Graph update rate is about a 1sec per sample (or a it less than that) whereas other data might be at the sampling rate or so on.. This will never match and hence you're observing this issue. This graph is very useful if want to monitor a gradual trendy curve.

    Regards,
    Gautam
  • Hi,

    If you are using the defaults, the Acquisition Data size is usually set to 50. However, your array only has 10 elements and the additional 40 values will be taken from the subsequent memory addresses (which are meaningless for the context of the graph).

    Another detail is that, to display the entire array at once, you must halt the program after the entire array is filled with relevant data - if you are trying to display the contents of the array "point", try inserting a breakpoint after line 32 of your code. This will show the properly initialized elements after the for loop.

    Check these discussions for some additional details:
    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/284786
    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/387341

    --Cheers