C2000 External Mode on CAN

12 views (last 30 days)
Niklas Humberg
Niklas Humberg on 22 Nov 2023
Edited: Abhishek Gota on 6 Dec 2023
Hello!
I am working on a concept for a testbench for electic motors. As a base-controller i want to preferably use a C2000 launchpad, because i worked with it before. The launchpad will acquire some sensor data and will be connected to two motor inverters to control the load strand and the device under test. Later the controller it self should be controlled from some kind of GUI within a simulink inviroment.
In a previous project i used the external mode with XCP on Serial for Hardware-in-the-loop Testing. But when i implemented a CAN Com between two Launchpads, i could not use the external mode anymore.
For the new project i am looking for a way to use the external mode while the Hardware is also communicating with the two motor inverters.
Is it possible to use the external mode over CAN, while the CAN Bus is also used to communicate with the inverters?
I hope that there is some experience on that out there, or maybe alternative Ideas regarding a communication between Simulink the C2000 and the inverters which is "easily" debuggable :)
Thank you in Advance!!

Answers (1)

Abhishek Gota
Abhishek Gota on 6 Dec 2023
Edited: Abhishek Gota on 6 Dec 2023
Hello Niklas,
I am assuming you are using either "C2000 Microcontroller Blockset" or "Embedded Coder Support Package for Texas Instruments c2000 Processors" based on the Matlab release.
I have tried to answer your questions based on following assumptions since your questions are generic in nature.
  • "Implemented a CAN Com between two Launchpads, i could not use the external mode anymore. "
As far as i know you should have been able to run external mode even with CAN communication established between two launchpads , any screen shot on error experienced would also help in answering better.
  • " Is it possible to use external mode over CAN while CAN Bus is also used to communicate over inverters "
You should be able to use external mode over CAN on a given simulink model even with additional CAN nodes in the CAN BUS. I have attached following documentation links for all the signal monitoring-parameter-tuning supported on C2000 to help you better .
Hope this helps.
Thanks
Abhishek

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!