title: Generating DLL out of Simulink model
body: <p>I'd be interested in knowing if any of you has direct experience in porting Simulink models into working DLL (Dynamic Linking Library).</p>
  
  <p>I am aware of this document:</p>
  
  <p><a href="http://www.mathworks.com/matlabcentral/fileexchange/9709-from-simulink-to-dll-a-tutorial" rel="nofollow">From Simulink to DLL</a></p>
  
  <p>but it is a rather outdated documentation. Perhaps there exist faster ways to accomplish this task successfully.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>As far as I understood, I just proceed this way:</p>
  
  <ul>
  <li><p>Derive a custom TLC from the grt.tlc file using the "Custom Target" example in the RTW Embedded Coder documentation, which does NOT require RTWEC, only RTW.</p></li>
  <li><p>Derive a custom TMF from the grt_vc.tmf file. </p></li>
  <li><p>Finally derive a C file.</p></li>
  </ul>
  
  <p>Does it make sense or not?</p>