5 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:
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 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.


Find more on Hardware-in-the-Loop Simulation with Simulink Real-Time 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!