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.

Collecting large amounts of ADC data - upload to host computer file

I am new to Code Composer.  I have Code composer 5.3 and GUI Composer beta.  I wrote a GUI program for my Experimenter's Kit - Piccolo F20869 that shows a simple graph of the last 8 ADC samples.

But what I really want to do is collect thousands of samples and write them to a file on my Windows 7 computer.   I don't see an obvious way to do this.  Do you have any suggestions for me?

Thank you for your time

Dave Daugherty

  • Hi Dave

    David Daugherty said:
    But what I really want to do is collect thousands of samples and write them to a file on my Windows 7 computer.   I don't see an obvious way to do this.  Do you have any suggestions for me?

    From the memory view, you can save contents of memory to a file on the PC. See the video below for an example. It is for CCSv4 but the feature works the same in v5 (the GUI dialog has changed a bit but you should be able to get the idea)

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/CCSv4/Demos/MemorySave_Load.htm

    The above video saves it as a *.dat file. *.dat is a text file format that has a word value in each line. You can also save it as a raw (binary) file.

    Thanks

    ki

  • Thank you ki for your prompt response.  You do excellent work!   I see that you post a lot to this forum and I have learned a lot from you already.

    I am traveling at the moment, but will try this out when I get back home and the hit the "works for me" button.  This should be good enough for my current purposes.

    Eventually I would like to write a  host-side (windows) program  that communicates with the command interfaces in the TI sample programs via the USB interface and transfers the data in real time.  The GUI composer must implement something like this for its graphing and control widgets.  Anything like a host side USB library available to implement something along these lines?  For instance I did notice a Visual C# sample around, but was hoping that there was something already built into Code Composer.

    Dave

  • Hi Dave,

    Thanks for the kind words!

    GUI Composer, like most host<->target communication features in CCS, currently using JTAG communication. Serial communication is next on the plate but it will not be until probably mid-next year when it is fully supported. Really the only thing that you can use with CCS right now for that would support a USB interface for target communication is System Analyzer. But it is not something you could use right out of the box, you need to add some target side instrumentation code using the UIA target side library.

    http://processors.wiki.ti.com/index.php/System_Analyzer

    This solution would allow you to pull and instrument data from the target but not offer so much in regards to the ability to tweak parameters via  GUI over USB.

    ki