Avoid generating empty functions with Simulink Embedded Coder
Hi, I’m generating C code from a Simulink model using Embedded Coder on Matlab R2017a. By default two functions are created, step and initialize. For my Simulink model, the initalize function is empty. Is there a way of avoiding generating the initialize function if it is going to be empty? The generation of this empty function creates some problems on the postprocessing of the generated C code by another tool so I was wondering if I could configure Embedded Coder not to generate empty functions.
Thanks in advance.Hi, I’m generating C code from a Simulink model using Embedded Coder on Matlab R2017a. By default two functions are created, step and initialize. For my Simulink model, the initalize function is empty. Is there a way of avoiding generating the initialize function if it is going to be empty? The generation of this empty function creates some problems on the postprocessing of the generated C code by another tool so I was wondering if I could configure Embedded Coder not to generate empty functions.
Thanks in advance. Hi, I’m generating C code from a Simulink model using Embedded Coder on Matlab R2017a. By default two functions are created, step and initialize. For my Simulink model, the initalize function is empty. Is there a way of avoiding generating the initialize function if it is going to be empty? The generation of this empty function creates some problems on the postprocessing of the generated C code by another tool so I was wondering if I could configure Embedded Coder not to generate empty functions.
Thanks in advance. embedded coder, simulink MATLAB Answers — New Questions