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.

Implementing Simulink model on F28069M

Other Parts Discussed in Thread: DRV8301

Dear all,

I have an elaborate Simulink model for motor control which was previously developed without the intention of actually implementing it on this controller. However, now I do want to implement this model on the F28069M controlcard (with DRV8301 inverter board). What would be the best approach to doing this? I know there is support for C2000 Microcontrollers in Simulink, but I don't know which blocks I have to insert into the model (which IOs etc) and how to merge it all.

Also, would it be better to write the code in CCS directly?

  • Hi Thomas,

    ThomasV said:
    Also, would it be better to write the code in CCS directly?

    If you ask me, yes this would be the best and optimized way of implementing the same. There are some issues in generating codes for latest CCS versions. If you still wish to stick to Matlab-CCS interface, then there are lot of tutorial videos on youtube that you can refer.

    Regards,

    Gautam

  • Gautam,

    Thanks for your answer.

    I have found a couple of tutorials, but these all seem to be starting from scratch in Simulink. For instance, I have found a tutorial to make an LED blink periodically on the controller card, where I just have to select the right GPIO block and give it the right input. What I have now is a full model, but without any information/interaction to the IOs/.. of the controller card, and I wouldn't know where to start if I want to "edit" this model to be able to load it onto the controller.

  • I understand what you're in need for. You'll have to approach Matlab forums and refer their documentations on C2000 for detailed info. If you've any issues while going for core coding techniques using CCS, this forum would be useful.

    Regards,

    Gautam

  • With Matlab forums, do you refer to the Matlab "Answers" section, or is there a dedicated forum? The support in the Answers section seems to be not that great, as many questions go by unanswered.

    Also, would it be beneficial to install a previous version of CCS, in order to make it work better with Simulink? If so, which one do you recommend?

  • ThomasV said:
    With Matlab forums, do you refer to the Matlab "Answers" section, or is there a dedicated forum? The support in the Answers section seems to be not that great, as many questions go by unanswered.

    Very true, they're a bit inactive forum. But that's the only way you can go as over here matlab support is negligible.

    ThomasV said:
    Also, would it be beneficial to install a previous version of CCS, in order to make it work better with Simulink? If so, which one do you recommend?

    Officially CCSv3.3 is supported but this version is no more available for download on TI website. CCS v4 too is supported but proper documentation is unavailable.

    I've also heard the news that Matlab is working to bring back the support for C2000 controllers that would be compatible with CCSv6. Not sure, when!

    Regards,

    Gautam

  • Gautam, thanks for the replies.

    Since then, ThomasV discovered VisSim and that may answer our issues.

    Just replying on this thread to make sure other users will also find VisSim in future.

    BR,

    Tomas

  • That's Great, Thomas! Thanks for updating us.

    Goodluck & Regards,

    Gautam