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/TMS320F28377S: how to dump the formatted values of the displaying variables into a text file or excel file

Part Number: TMS320F28377S

Tool/software: Code Composer Studio

Hello,

I have a question on the real-time graph function when using the Code Composer Studio development tool.

In the Debug environment, when the graph function listed on the tools menu is selected, variables in the user source codes can be displayed in real time.

What I need in association with the graph function is to dump the formatted values of the displaying variables into a text file or excel file as appropriately.

Please inform me how to dump the formatted values of the displaying variables into a text file or excel file.

Thank you for your guidance.

With regards,

G. Kim

  • Hello,

    Geon Kim said:
    What I need in association with the graph function is to dump the formatted values of the displaying variables into a text file or excel file as appropriately.

    Just to make sure I understand correctly, you wish to do this also in real-time (continually write out the value of a variable to a text file on the host whil ethe target is running)?

    Thanks

    ki

  • Dear Lee,

    Thank you for your review.

    It does not have to be in a real time.

    I suppose that the text dumping process may be impossible to be completed in a real time.

    It might be sufficient if I can dump the formatted values of the displaying variables into a text file with respect to a paused graph.

    Thank you for your guidance.

    With regards,

    G. Kim

  • In that case, you can use the Memory Save option in the Memory Browser view to save the contents of memory to a file on your PC. (right-click in the Memory Browser view and select "Save Memory". This will open a dialog where you can specify the file location, size, and format of the data.

    Thanks
    ki
  • Dear Lee,
    I appreciate your review.
    I have found out that there are four file types to select, i.e. TI Data, TI Raw Data, COFF, Binary, for the "Save Memory" function.
    I have also found out that the generated filename is filename.dat no matter which file type I select.
    However I cannot open the file of filename.dat to view its data.
    Which application program should I use to open the .dat file?
    Thank you for your guidance.
    With regards,
    G. Kim
  • Geon Kim said:
    I have also found out that the generated filename is filename.dat no matter which file type I select.

    You can use the Browse button to browse to a location to save the file. You can specify a name and type of file (which will change the name of the file extension)

    Geon Kim said:
    However I cannot open the file of filename.dat to view its data.
    Which application program should I use to open the .dat file?

    A *.dat file is in text format. Hence any text editor should be fine.

    Thanks

    ki