Simulink "Code generation" option unavailable (MATLAB R2015b)
    33 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
I am unable to find the code generation option in the Simulink window. No clue why, but I did quite some amount of searching. Not sure if there is a specific toolbox/license issue. But I have MATLAB r2015b license. The final aim is to compile it to C++ code and use it in TwinCAT 3.1 (Visual Studio 2010 C++)

0 comentarios
Respuestas (4)
  Song-Hyun Ji
    
 el 9 de Abr. de 2018
        If you are using a Student version liense, MATLAB Coder and Simulink Coder can only be running MATLAB R2016a or later. As such, it is not going to be possible for you to use Code Generation for R2015b. Please use "Total Academic Headcount" license or other profesisonal licenses.
2 comentarios
  Eran Notkin
 el 13 de Dic. de 2018
				I have the same problem, I have no code generation tab, althogh
> license('checkout', 'RTW_Embedded_Coder' )
ans = 1
> license('checkout', 'MATLAB_Coder' )
ans =  1
>> license('checkout', 'real-time_workshop' )
ans =  1
and I use Matlab 2018a
what can I do in order to see code generation tab?
  Song-Hyun Ji
    
 el 9 de En. de 2019
				If you installed all 3 products you checked license, please run the following commands in order to see all menus properly. 
>> restoredefaultpath 
>> rehash toolboxcache 
>> sl_refresh_customizations 
>> matlabrc
>> savepath 
If you still cannot see the menu, please contact Technical Support team.
https://www.mathworks.com/support/contact_us.html
  Prashant Arora
    
 el 6 de Mzo. de 2017
        Hi Raghu,
Code Generation requires Simulink Coder. You can execute the following command in your MATLAB command window.
license checkout Real-Time_Workshop
If you see 0 as the output, you are probably not seeing the Code Generation pane in the Configuration Parameters window because Simulink is unable to check out a license for Simulink Coder (formerly known as Real-Time Workshop).
3 comentarios
  James Kang
 el 14 de Ag. de 2018
				I have the ans of 1, but I still don't have the code generation option under the Configuration Parameters window. Could you help me with this please. ASAP. Thank you so much.
  Jose GL
 el 8 de Feb. de 2019
				Hi
Verfify this toolboxes: 
Code Generation
    Simulink Coder
    Embedded Coder
    Fixed-Point Designer
    Simulink PLC Coder
    Simulink Code Inspector
    DO Qualification Kit (for DO-178)
    IEC Certification Kit (for ISO 26262 and IEC 61508)
    HDL Coder
    HDL Verifier
Code Generation
    MATLAB Coder
    Embedded Coder
    HDL Coder
    HDL Verifier
    Filter Design HDL Coder
    Fixed-Point Designer
    GPU Coder
Application Deployment
    MATLAB Compiler
    MATLAB Compiler SDK
    MATLAB Production Server
All are necessary por Code Generation from Matlab
Regards
  achref dhaouadi
 el 10 de Jul. de 2018
        Hello I have a question about code generation from a simulink model Usually the name of the generated .c files and .h files follow the name of the model done on simulink, so we can change the name of the files generated so that it is generic and not related to the name of the model. . Example: my simulink model is called "pi-corrector" and I want the files .c and .h have the name "generic file c" for example not "corrector pi.c" and "corrector pi.h". thank you
1 comentario
  Jose GL
 el 8 de Feb. de 2019
				Hi
You can change the name of all files. But be carfully to rename all files that are linked with others files.
Regards
  Hammed Omotoso
 el 19 de Oct. de 2022
        
      Editada: Hammed Omotoso
 el 19 de Oct. de 2022
  
      license('checkout', 'real-time_workshop')
ruuning this code returns 1 as the output yet I can not see Code generation pane in my simulink model. I am using MATLAB 2022a version. 


3 comentarios
  Ghayyur Hassan
 el 27 de Abr. de 2024
				Anyone who solved this issue with same problem of not getting the option but has 1 as output?
  JB
 el 15 de En. de 2025
				I had the same issue and solved it by installing the necessary Add-ons. (In my case "Simulink Coder")
Ver también
Categorías
				Más información sobre Configure Signals, States, and Parameters en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!











