Embedded Coder and C2000 PIL or External
Show older comments
Hi,
I hava a Simulink-Model containing some Sensor-Calibration, Calculation and PID-Controlers and am currently compiling it for my TI F28335 DSP. I get the *.out-File and run it on my DSP. That is working fine.
Now I would like to tune the parameters and see the variables in real time. I think the term for this is "Hardware in the loop". I have installed various versions of Matlab, CCS, CGT and Bios. I am not completely sure which combination is best but it seems that R2016a and CCS6 can work together.
I also would like to know: What are the differences between SiL, PiL and external mode? Which one is best for my application?
Can I use my JTAG-Connection on the XDS100v2-Debug-Probe or do I have to connect via SCI?
Thank you very much in advance!
Answers (2)
Antonin
on 12 Oct 2017
1 vote
Hi Martin,
External mode is what you are looking for. It is supported over serial and CAN on the C2000 processors. Here is a detailed example on how to get started:
Make sure that you have a proper serial connection in place, these pages can help you establish your serial communication:
I hope it helps,
Antonin.
2 Comments
ashwinee jadhao
on 20 Feb 2019
I want to use CAN communication. Please help me
文浩 朱
on 18 Mar 2021
Set the four pin pins of boot to SCI inF28335?choose GPIO28/29?
Martin Grüterich
on 12 Oct 2017
3 Comments
Michael Schroth
on 29 Nov 2017
Edited: Michael Schroth
on 29 Nov 2017
Hi Martin,
i know this answer is a bit late but i got the same problem today and maybe someone else needs the solution too.
Did you set your Simulation stop time to inf? In my case the Simulation stop time was set to 10 seconds and it seems that it started to count down although it wasn't even connected to the board. When it was ready to connect, the Simulation stop time already was over and i got the same error-message as you did. So i set the Simulation Stop time to inf, then it worked.
Best regards, Michael
Martin Grüterich
on 29 Nov 2017
文浩 朱
on 18 Mar 2021
Set the four pin pins of boot to SCI inF28335?choose GPIO28/29?
Categories
Find more on Texas Instruments C2000 Processors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!