Skip to Main Content Skip to Search
Product Documentation

Use Discrete and Continuous Time

Generate Code for Discrete and Continuous Time Blocks

The ERT target supports code generation for discrete and continuous time blocks. If the Support continuous time option is selected, you can use any such blocks in your models, without restriction.

Note that use of certain blocks is not recommended for production code generation for embedded systems. The Simulink Block Data Type Support table summarizes characteristics of blocks in the Simulink and Simulink Fixed Point block libraries, including whether or not they are recommended for use in production code generation. To view this table, execute the following command and see the "Code Generation Support" column of the table that appears:

showblockdatatypetable

Generate Code that Supports Continuous Solvers

The ERT target supports continuous solvers. In the Solver options dialog, you can select any available solver in the Solver menu. (Note that the solver Type must be fixed-step for use with the ERT target.)

Generate Code that Honors a Stop Time

The ERT target supports the stop time for a model. When generating host-based executables, the stop time value is honored when any one of the following is true:

Otherwise, the executable runs indefinitely.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS