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.

Delay in Dual time graph

Other Parts Discussed in Thread: DRV8301

Hi,

I am using the DRV8301 evluation kit with TMS320LS12 control card for controlling the motor model simulated in DSpace.

The current feedback Phase A and B that I received from DSpace is perffectly 120 deg out of pahse.

But when I am reading inside my controller and see the values using dual time graph. The phase shift is varying frequently.

To plot graph... I am using the buffer in my code.  

Phse shift is due to only logging problem or is there any problem in my analog conversion. I am using logscalar =5(every 5 sample it loggs) for buffering inside my code. I am able to get almost perfect sine wave.

Thanks & Regards,

Rathinavel

  • GUI Composer isn't able to bring the data back in true real time where you should expect signals to be synchronized to the same time event, especially if you are updating these values in the interrupt at a high rate.

    I'll move this to the GUI Composer forum and see if they know of any settings that could make this as good as possible.

  • Hi,

    Thanks for your support. I have solved the problem.

    The issue is, in the sample code I received with my evaluation code, is logging data using buffer which fills for specified samples and then wait for some time and starts fill next set of samples.

    But the graph reads my data continuously, so when I am reading it, there is always possibility that ,it includes the old buffered data, and newly buffered data.

    I modified the code, to log data only once per trigger from the user to solve the problem.

    Thanks & Regards,

    Rathinavel