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.

Data Logging using ezDSP f28335

Dear TI experts,

 

I have been using ezDSP 28335 for the motor speed control. I wonder what is the best way to log the data in this case?

The control tool kit has DATA_LOG module, but that one could only log a few thounds samples and has to be viewed by CCS studio.

Some one suggest me to using RTDX, although find it difficulties to find the supporting material for that, as TI has stops supporting it.

Other ways , such as SCI, CAN....

Would someone please give me some clue about which is the right direction?

 

Rgs

Nathan

 

  •  Can someone help with this?

  • I've been facing the same problem. I can suggest two possible solutions which I'm using at the moment.

    1.The first is to write your results to some defined array in your program and to store it by selecting File->Data->Save and typing the name of that array and its lenght. To make it more "automated" you can set a breakpoint and set  a "Write Data to File" action in Breakpoint Manager to it.

    2. Another way to store data is to transfer it via serial port and and receive in PC. You can use some software for acquisition like Matlab. It's very useful when you need on-line visualization and jtag is to slow for that.

    I'm not sure if these are the only and the simplest ones. If anybody knows another "tricks" I'd be glad to learn about them.

     

     

  • Check matlab target package. Go to help menu, there you'll find some examples.

    If you want to see the data, use GUIDE from matlab with simulink to display images.

    Regards

    Gastón

  • Hi Nathan,

    As Chris said, both the Functional Debugger and Interface Designer include real-time, high resolution datalogging over uart. All you need to do is add a few lines of code in your target application to start communicating with the Crosshairs tools.

    We offer free weekly webinars, so if you're interested in a demo just visit crosshairsembedded.com/webinar to sign up.

    Regards,
    Espen Øyan
    FAE, Crosshairs Embedded

  • Thanks Piotr,

    I have tried the first method. It will allow me log data and thank you for that.

    But the number of data that I can log is limited by the memory I have. So I would prefer to serial port method.

    Just wonder if it need write some code to use the SCI port on DSP if I want to use this method.

    Or I could use matlab to obtain the data directly?

    Could you please provide more details regarding this?

    Kindly RGs

    Nathan

     

  • I recommend you to start from "scia_loopback_interrupts" peripheral example code from TI. This program allows to send 8 words one by one, every time when interrupt from fifo occurs. You can set interrupt from FIFO, transmitter or receiverer to synchronize data transfer.

    For tests you can use some RS-232 terminal to check if your connection and transmitted data are correct. Then in Matlab you should write a script which will open a serial port, define a frame, parity etc. and eventually - store data.

     I hope it will help ;-)