CONVERTING MATLAB SIMULINK MODEL INTO Programming

조회 수: 3 (최근 30일)
Khalid Javed
Khalid Javed 2021년 2월 1일
편집: Khalid Javed 2021년 2월 11일
Is there any tools which can be used to convert Simulations from Matlab in to the programming (C or C++)?

답변 (2개)

J Chen
J Chen 2021년 2월 1일
Try the Simulink coder.
  댓글 수: 1
Khalid Javed
Khalid Javed 2021년 2월 1일
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?

댓글을 달려면 로그인하십시오.


Brian McKay
Brian McKay 2021년 2월 1일
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
Khalid Javed
Khalid Javed 2021년 2월 2일
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 2021년 2월 10일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deploy to C++ Applications Using MATLAB Data API (C++11)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by