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.

Time Stamping Console Output

Hi

I am printing voltage data on CCS console. Is there a way to timestamp the data and save it to file from console in CCS3.3/ CCS4. Currently I am only able to save the data to a file but unable to time-stamp.

Any help would be much appreciated.

  • Hello,

    There is no timestamp feature for console output or when you stream to a file. Sorry

    ki

  • Hi

    How do we redirect the console output in CCS 3.3. ?  I am able to redirect output in CCS 4.

    Bhavesh Mishra

    IIT Delhi

  • Bhavesh,

    CCS 3 is very old and most likely unsupported (CCS 5 is current and CCS 6 will probably appear sooner or later http://processors.wiki.ti.com/index.php/CCSv6). If feature you want works with CCSv4 you should use it.

    Regards,
    Maciej 

  • bhavesh mishra said:
    How do we redirect the console output in CCS 3.3. ?

    Right-click in the output window and select "Save output to file". That will open a dialog with various output streaming options.

    Note that you will need to have at least some output in the window already for that option to be available.

    And Maciej is right - CCSv3 is very old and not supported anymore. I strongly recommend moving to a later version of CCS.

    Thanks

    ki

  • Problem solved !

    Thanks a lot. This is the first time that I have posted a problem on this forum and I am highly impressed by the prompt response that I received.

    I am also able to time-stamp the data now. Let's say I am redirecting the output to "output.txt" then I am opening the file from a Java / Python program which looks for any update in the file and time-tags it.

  • Hi bhavesh mishra,

    is the program you are using to timestamp the changes in the file readily available or did you create it your self?

    Can you suggest any program for this function?

    Thank you in advance

  • Hi Giannis

    I followed a crude yet simple approach to timestamp.

    Let's say that you are redirecting the output to data.txt. Now using a programming language say Python you can do the following:

    1. Start an infinite loop so that you will load and read the file continuously.
    2. Open the file, read the data points and using the datetime module in python (date module in Java etc) you can append the time.
    3. Note the byte number / line number of the last line you have read and when you again enter the loop start from the same position. This will save time or else you can load and read the file again.

    The above method is not necessarily the most accurate method and will not give you the exact time at which data was generated. In my case I could tolerate an error of few milliseconds so it worked fine for me.