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/DRV8301-69M-KIT: Matching time in Code composer graphs with Real time clock(seconds) + Export Data for processing

Part Number: DRV8301-69M-KIT
Other Parts Discussed in Thread: MOTORWARE

Tool/software: Code Composer Studio

Hello,

I am running project_lab12b in ccs from motorware C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_motion\boards\drv8301kit_revD\f28x\f2806xM\projects\ccs with which I want  to do speed control on my brushless motor. Athough everything go right, my question relies on this.

1. I depict the speed of my motor in the graph option of CCS selecting in properties 1Hz sampling rate. Thus 1 second in graph matches in 0.5 second in real time. Thus I changed the sampling rate in 2Hz and there was a perfect matching in time. Can you explain me why does this happen?

I am using graph in order to export my data to MATLAB.

2. Is there any way to export data to Excel or MATLAB? For example in another project I would like to keep data of  current measurement. Is any way to make a plot with current in y axis and time in x axis?

Thank you in advance!

Petros - Angelos Polydorou

Student at Mechanical Engineering Department

National Technical University of Athens

  • Hi,

    1. I am not entirely sure what is the correlation between the real world data and the graph on your system, since the sampling rate property of the graph is arbitrary and completely asynchronous in relation to the actual hardware.

    - Are you saying your hardware is sampling at 1Hz but, after your code runs and stores the sampled data in an array, your plot is only showing half of the samples? If so, check the property "Display Data Size" of the graph properties - it limits the amount of displayed data.
    - If you are using the "Enable Continuous Refresh" property, which continuously refreshes the screen with an arbitrary time, keep in mind that refresh time is very imprecise (the default is 500ms)

    2. On the data plot view, simply right click and select Data --> Export All

    Hope this helps,
    Rafael