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.

digital motor control library-data_log



Hi,

In DMC library there is a data_log module which helps to plot the graph in ccs,I want to use it to plot a signal which is about 1 second record, but no matter how I change the setting in the data_log module(buffer size etc), it seems the plot is not correct

Is there any further document in this field?

Or any good suggestion on plotting long record signal using CCS?

Many Thanks!

  • billstrong said:

    In DMC library there is a data_log module which helps to plot the graph in ccs,I want to use it to plot a signal which is about 1 second record, but no matter how I change the setting in the data_log module(buffer size etc), it seems the plot is not correct

    Is there any further document in this field?

    There is a document describing the data_log module found in C:\tidcs\DMC\c28\v32x\lib\doc\data_log.pdf.  This was installed by the DMC library executable.

     

    billstrong said:

    Or any good suggestion on plotting long record signal using CCS?

    In the above document, there is a screen capture of a display window property which may provide some guidance.

  • billstrong,

    I believe there are three places that you can change the data_log size.  I do not remember which one is ultimately responsible for changing the size, but it is good practice to change all three.

    -one is changing dlog.size in the main file
    -one is changing the variable BUFF_SIZE in DLOG4CHC.asm
    -one is changing the default initialization of a dlog in dlog4ch.h.  In particular the size dlog's default in the struct.

    Note that changing the prescaler will modify the amount of delay between points in your graph.


    Thank you,
    Brett Larimore

  • I have a related question. In my case, I am able to display a variable in the graphical display window and I can see it changing but when the display gets filled it does not start all over again. In other words it gets filled only once and stops. I tried to right click on display window and select Refresh but nothing changes. Any ideas on how to solve this?

    Thanks