Real Time Parameter Tuning in the target F28335(Experimenter Kit) using Matlab Simulink 2013b and CCS version 5.

2 views (last 30 days)
I have created my model in Matlab Simulink using Texas instrument C2000 processor supported blocks. The code runs perfectly with CCS version 5. Now i want to tune 3 parameters in real time(vary the value in real time). From the examples provided by matlab, it seems like it is possible with CAN. But unfortunately, i do not have any CAN hardware http://vector.com/vi_vn1600_en.html to perform it. Are there any alternative methods to achieve this task?
Thanks in advance!

Answers (2)

Antonin
Antonin on 26 Nov 2015
Hi Sam, Starting in MATLAB release R2015a, External mode is supported via a serial connection with the target. You can use the serial over USB connection that is present with most controlCARDs and launchpads to do so. Here is a link to a shipping example that explains the workflow:
Here is a link to the documentation chapter for External Mode:
And here is a helper link to setup serial connections with controlCARDs:
Antonin.

Kamal Joshi
Kamal Joshi on 26 Nov 2015
Hi Antonin,
Is it possible to have communication setup through SCI so whenever in the field one can just plug a simple USB cable and use the hyperterminal to modify certain parameters in the code ?
Please advise.
Thank you, Kamal Joshi
  1 Comment
Antonin
Antonin on 27 Nov 2015
Hi Kamal,
You can implement this using the SCI block. If you need "printf" capabilities, you can get it from a MATLAB function block in your Simulink model, that is compatible with code generation. It's not too hard to do. Careful with printf as it eats quite a bit of memory.
I hope it helps, Antonin.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!