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.

Storing data from an array

Hi there,

I'm doing ADC10 on the Launch Pad , and I create an array called Samples, that store the voltage from 5 channels.

I want to know if it is possible using Code Composer to store this values from the array in some kind of memory along with the time it was taken ?

thank you

  • What has CCS to do with data that is created/collected by yor MSP application in realtime? And how shall CCS know when it was created?

    If you want tiem tagging, you must either do it inside the MSP and then send the data so someone who stores it (like HyperTerm capture function) or you need a PC program that receives the data in realtime, tags it with a time and writes it. It's up to you to write it with an PC software developemnt tool you want. Including LabView scripts.

    CCS is a compiler/debugger IDE for MSP, not an aplication/data processing front-end.

  • While it might not be a data processing front-end it's possible to use the graph features during a debug session and get some values out of that, it reduces the processing speed quite drastically (as you can imagine) - but depending on what you want to get it's okay. Especially to get some ADC values and see what's happening it's quite nice. It's of course not really a suited solution if you want to take long term measurements and or need precise timing.

  • I can't find that function in my CCS 4v, is it a plug in ?

    Thank You for the help

  • Miguel Amaral said:
    store this values from the array in some kind of memory

    The array is in "some kind of" memory!

    All program variables are stored in "some kind of" memory (somethimes possibly a register - but that is a kind of memory).

    Please explain what you are actually trying to achieve here.

    http://www.catb.org/~esr/faqs/smart-questions.html#goal

  • Sorry!

    My goal is to send the data that is in the register ADC10MEM and send it to another type of memorie so I can have the values of voltages during some interval of time.

    I have created an array called samples, that have 5 values of witch channel, but is being always changing. What I want is to take this values, in a interval of time to another location so that I can later visualize!

    Thank You

    MIguel Amaral

  • Miguel Amaral said:
    I have created an array ... What I want is to take this values, in a interval of time to another location

    This is a basic 'C' programming exercise - nothing specifically to do with the MSP430.

    The 'C' Programming Language does not have a facility to directly assign one array to another, so you have 2 choices:

    1. Copy the elements individually; eg, using a for loop;
    2. Use a library function, such as memcpy.

    See any decent 'C' textbook for details.

**Attention** This is a public forum