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.

Export graph data

Other Parts Discussed in Thread: TMS320F28335

Dear ti

I absolutely love your product.  I am using a TMS320F28335 micro-controller.  I have read almost all the literature and forum posts, but I still seem to do it wrong.

I am using ccsv5 (for various reasons, but will upgrade next year to ccsv6).  I have to plot data in Excel.  I am using your graph function to plot the values of "expressions" that  I have selected.  In this particular case, I have to plot the data received from an ADC-pin.

I run my code....right click on the expression (variable being studied).....select Graph....then after a while I right click on the graph itself....select Data option.....Export All....Then I save it as a CSV file, which can be easily opened in Excel.

However, it only seems to save the latest values, not all the values.  For example it will save all the sampled data from for example seconds 400 to 590.  But will not save my data from the very first sample (0 seconds) all the way to the end.

I sure hope you can help me!

  • Hi,

    Armand du Plessis said:

     But will not save my data from the very first sample (0 seconds) all the way to the end.

    I sure hope you can help me!

    A script would be recommended. You can try something like this:

    http://processors.wiki.ti.com/index.php/GEL_Example_-_Periodic_Recoding_of_a_Variable

    Note that part where it mentions how you can stream the output to a file.

    Regards,

    Gautam

  • Dear Gautam

    I think I have solved the problem.  What I do is: Just above the graph, on the right hand, there is a tool bar with the option "Show the graph properties".  Then when you select it, you will be in the "Graph properties" window.  Now, Under the "Display properties" drop down menu, I change the "Display Data Size" to 30000 for example (mine is 200 by default), then it stores all the data on the graph as I want it.

    In other words, when I now Right-click>>Data>>Export All, then I can see all my values in Excel from the very start to the end. i.e. in Excel I can see the values sampled from the very first sample to the end, and not just for example samples 400 to 590.

    Be careful though, since every time you add a new graph you have to change the "Graph properties" as mentioned above.

    I am currently running a test to determine how many values I can actually record in this manner, but at the moment I have over 13000 sampled values, all exporting just fine.

    Thank you for your very swift reply.  Just another reason why Texas Instruments is really great!

    Armand

  • That's Great, Armand!

    Armand du Plessis said:
    Thank you for your very swift reply.  Just another reason why Texas Instruments is really great!

    I do agree with that :)

    Goodluck & Regards,

    Gautam