Clear Filters
Clear Filters

CONVERTING MATLAB SIMULINK MODEL INTO Programming

8 views (last 30 days)
Is there any tools which can be used to convert Simulations from Matlab in to the programming (C or C++)?

Answers (2)

J Chen
J Chen on 1 Feb 2021
Try the Simulink coder.
  1 Comment
Khalid Javed
Khalid Javed on 1 Feb 2021
Thank @J Chen
Can you please guide me that I should install this simulink coder on my MATLAB or MATLAB should already have it?
Can I have the details please?

Sign in to comment.


Brian McKay
Brian McKay on 1 Feb 2021
Go look at the C2000 support package from Embedded Coder; this is exactly what it does:https://www.mathworks.com/matlabcentral/fileexchange/43096-embedded-coder-support-package-for-texas-instruments-c2000-processors
  2 Comments
Khalid Javed
Khalid Javed on 2 Feb 2021
Thanks alot for the guidance. This really helps me alot.
I do install the support pakage and it is connected to the C2000 F28035 Piccollo Controller and I do run the start example of the blink LED and it is working. So thanks again for this.
I have a query that I have a simulink model which contains the control of the Interleaved boost converter that is designed in simscape by connecting the existed blocks. So now I want to send the PWM singals to the ports of the C2000 microcontroller or if I can say that I want to send the whole of control process into the controller then can you please help me in that?
If you want I can have my simulink model attach here.
Ridvan Keskin
Ridvan Keskin on 10 Feb 2021
hi khalid javed,
I have same problem and control of the IBC converter. How you solve C/C++ coder errors?
I have C2000 delfino f28335 experimental kit. When I use the ccc complier, it gives me the error below as:
INTERNAL ERROR: C:/PROGRA~3/MATLAB/SUPPOR~1/R2019b/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/bin/cl2000 had an internal inconsistency and aborted while processing file C:/Users/rk/Google Drive/PhD/z_notes/T¦K-3/28335/den_1_ert_rtw/MW_c28xx_board.c This is caused by a defect in the TI C/C++ Compiler. TI Customer Support may be able to suggest a workaround to avoid this. Upgrading to the newest version of the compiler may fix this problem. Contact TI in the E2E support forums at http://e2e.ti.com under "Development Tools", "TI C/C++ Compiler". See the link titled "Submitting an issue". We need to see this ENTIRE error message and a complete, reproducible test case including ALL of the command-line options. gmake: *** [MW_c28xx_board.obj] Error 2 C:\Users\rk\Google Drive\PhD\z_notes\TİK-3\28335\den_1_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\rk\Google Drive\PhD\z_notes\TİK-3\28335\den_1_ert_rtw>exit 1 Error(s) encountered while building "den_1": ### Failed to generate all binary outputs.
How can ı solve this problem, I investigeta the Texas inst. cite and similar problems but ı can not solve this problem,
Please help me about issue

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!