Real time debug CCSv5 and MATLAB

1 view (last 30 days)
Caleb Garcia
Caleb Garcia on 11 Aug 2016
Answered: Antonin on 1 Dec 2016
I'm working with TMS320F28035, CCSv5, MATLAB R2015a, and a pms motor.
I loaded this existing project: HVPM_Sensorless (from ControlSUITE) in CCSv5, wich fits very well to my project. Here in code composer I'm allowed to modify global variables like SpeedRef and VqTesting in real time debugging.
But, for project reasons, I have to control motor speed, motor direction and torque via MATLAB.
All these variables can be controlled in Code Composer in the Debug session, but I would like to modify SpeedRef and Torque via MATLAB, in order to achieve project purpose. If any one know how to modify this variables in MATLAB in real time I'll appreciate to let me know.
Regards.
-Caleb.

Answers (1)

Antonin
Antonin on 1 Dec 2016
Hi Caleb,
The parameter tuning part of External mode does exactly what you are looking for.
You can even use the dashboard knobs to tune your parameters (the dashboards sinks are not supported yet).
FYI, the R2016b version of MATLAB provides much faster communication compared to the previous versions, I recommend you upgrade.
I hope it helps,
Cheers,
Antonin.

Community Treasure Hunt

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

Start Hunting!