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 v5.2 Graph problem

Hi,

It's the first time I use the graph option in CCS so I'm sorry if I ask something very obvious, but I just can't understand. 

I needed to watch the fluctuation of a variable on a graph, so i added the variable in the watch expression window, right clicked on it, clicked graph and the graph appeared.

The problem is it had a sample rate of 1 Hz that's just too low for me, I needed 500-1000 Hz . So I went on Tools->Graph->Single Time and modified the sample rate, then clicked ok. Then, another graph appeared that just didn't made sense to me and if I do again the right click on variable-> Graph selection, the graph has again a sample rate of 1 Hz.

Can you please tell me how I can make a graph of the variable with the sample rate I want (or just obtain the data on a .csv file)?

Thank you

  • Hello.

    Rodolfo Magi said:
    The problem is it had a sample rate of 1 Hz that's just too low for me, I needed 500-1000 Hz . So I went on Tools->Graph->Single Time and modified the sample rate, then clicked ok. Then, another graph appeared that just didn't made sense to me

    What you did was create a completely new graph with the sample rate you want.

    Rodolfo Magi said:
    and if I do again the right click on variable-> Graph selection, the graph has again a sample rate of 1 Hz.

    Then you create another new graph for the variable.

    Any new graph you create will use the default setting.

    What you want to do is to modify the properties of an existing graph.

    When you do this step:

    Rodolfo Magi said:
    so i added the variable in the watch expression window, right clicked on it, clicked graph and the graph appeared.

    go to the graph and modify the properties for the graph that just opened for the variable. Do this by pressing the graph properties button in the graph:

    Then edit the sample rate in the properties page that appears.

    Thanks

    ki

  • Thank you for the answer, I don't know why but I missed the sample rate option on the properties .

  • I did what you said, but the data that I acquire at 1000, 500, or 100 Hz are totally inconsistent with the values the variable can assume and the data I see  the variable assumes by watching the variable in real-time mode. Why?

  • Sorry for the spamming, but I tried to re-set the sampling rate to 1 Hz and the data are the same as before: inconsistent. If I don't change the properties, the graph is consistent but too slow, after I change them, no matter the state, the data are inconsistent for that moment on, so I'm assuming it's not watching the same variable.

    Thanks

  • The graph should be plotting the contents of the address of the variable. Perhaps you need to change some of the other graph properties

    Thanks

    ki