Support for Continuous Time Blocks, Continuous Solvers, and Stop Time

Generating Code for Continuous Time Blocks

The ERT target supports code generation for 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 at the MATLAB command line:

showblockdatatypetable

Then, refer to the "Code Generation Support" column of the table.

Generating 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.)

Generating 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.

  


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