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.

Add datalog in instaSPIN project

Other Parts Discussed in Thread: DRV8301, MOTORWARE, CONTROLSUITE

Dear My friends:

  I have a project to control PMSM motor based on the F28069 of Drv8301 in lab12b of motorware.

Currently I need to datalog the vaule(current/voltage) from ADC, motor speed, motor current and so on.

Is it possible to save these datalog value?  

1) save datalog as txt file.

2) save datalog by usb/rs232 interface.

 

Best Regards,

Sheng-Hua

  • Hi ShengHua,

    Great to see your request for datalogging variables within your InstaSPIN application.  We are developing a Motor-in-the-Loop (MIL) test system for automated load testing and a key part of this system is the datalogging.  Here’s a high-level overview that we are using, a method that you could follow as well.

    1. Store variables to a local RAM from the main control ISR. You can control the decimation rate if any is desired.

    2. Use SPI-A (SPI-B is used to communicate with DRV8301) to transmit values from local RAM to a PC-host. We are using an FTDI USB/SPI cable for this (C232HM-DDHSL-0).

    3. PC-host is running custom software to collect this data from the USB port and saves it to a text file.

    That is the basic overview.  We also are parsing the COFF output file to associate the received data with symbolic addresses to make the output text file more usable.  Details of this will be in the package that we will release (no date has been determined since it is still under development).

    My suggestion to you is to establish the SPI communication to get the throughput, but for slower data rates you could use SCI.

    Hopefully this helps. 

    Thanks,

    Jeff

  • Dear Jeff:

    Sorry for late response. There are three kinds of method mentioned as above is used to collect datalog.

    /******************************************************************************************************************************
    1.Store variables to a local RAM from the main control ISR. You can control the decimation rate if any is desired.
    2.Use SPI-A (SPI-B is used to communicate with DRV8301) to transmit values from local RAM to a PC-host. We are using an FTDI USB/SPI cable for this (C232HM-DDHSL-0).
    3.PC-host is running custom software to collect this data from the USB port and saves it to a text file.
    *******************************************************************************************************************************/

    As for method 2, the SPI interface has been used by Ti Resolver Kit to transfer rotate angle of rotator for controling PMSM motor.
    Now I am intersting in method 1 and method 3 to implement datalog funciton. How can I get a sample code to test datalog function by method 1 and method 3? Thank your help.

    Best Regards,
    Sheng-Hua
  • Sheng-Hua,

    Actually I was listing (3) steps to a single method:  local data storage, serial communications, and a PC host to collect the data.

    For the 1st step, look at the DATALOG function in the ControlSUITE example code, there are quite a few that use this function but a good place to start that is related to your work is here:   C:\TI\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105\PM_Sensorless.

    Documentation on this module/function can be found here:  C:\TI\controlSUITE\libs\app_libs\digital_power\f2806x_v3.5\Doc.

    This will provide local data storage.  You can then transfer it to an external device with whatever method works best for your situation.

    Jeff

  • Dear Jeff:

    Thanks very much and I will try to write the function later.

    May you have a nice day.

    Best Regards,

    Sheng-Hua