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.

DRV8301-69M-KIT: MATLAB with Launchpad

Part Number: DRV8301-69M-KIT
Other Parts Discussed in Thread: BOOSTXL-DRV8301, LAUNCHXL-F28069M

Dear TI team , 

Is it possible to update and send desired values(velocity/position/etc) directly from Simulink in "Real-Time" when in connection to the drv8301-69Kit ?Any similar example ? maybe you can point out one please. 

Best Regards, 

  • Hi,

    This page should help you!

  • Dear Venkatesh, 

    Thank you for your help. As I can see there are either motor control with 

    1st example

    -F28027 LaunchPad

    - BOOSTXL-DRV8301 with a 3-phase brushless motor and a 12-24V power supply

    or 

    2nd example

    -TI LAUNCHXL-F28069M LaunchPad 
    - 2 BOOSTXL-DRV8301 with a 3-phase brushless motor and a 12-24V power supply

    I want to work with 

    -one TI LAUNCHXL-F28069M LaunchPad 
    - one BOOSTXL-DRV8301 with a 3-phase brushless motor and a 12-24V power supply

    Can the example with F28027 Launchpad work with F28069M by only changing the hardware board in the hardware implementation in the simulink to TI Piccolo F28069M Launchpad ? 

    or  it is better if I remove the blocks related to the second motor in the 2nd example (with the 2 boostxl).

    Would be thankful if I receive an answer as soon as possible

    Regards, 

  • Jinan,

    Based on the HW you have, I think it should be straightfoward to disable the 2nd motor block in the example vs trying to port the single motor example from F28027.  The second motor should just be a duplication with differnent peripheral muxing that doesn't overlap with motor 1.

    Best,

    Matthew

  • Dear Mathhew, 

    1. Where can I find the definitions of the parameters required in the workspace of the dualmotor example ? So I can update the values with my motor values, as they are listed without being defined. 

    Arent there an (.m) file for this example ? like the first example with F28027F , as there is only the Simulink available.

    To be more specific, I need to know more about the definitions of these parameters in the workspace, so I can fill out with the right values of my motor. 

    Regards, 

  • can someone answer this question please.. 

  • Hi Jinan,

    These variables are initialized when the Simulink model is loaded. You may access the initialization script by going to model properties-->Callbacks.

    Alternately, you may also type ‘edit c28069pmsmfoc_data’ at MATLAB command window to open this models’ initialization script.

    --

    Darshan Pandit | MathWorks

    For more resources see: MATLAB Central 

  • Thanks Darshan.

    Jinan, does this resolve your issue?