Real-Time Workshop User's Guide    

Block Diagram Performance Tuning

Certain block constructs in Simulink will run faster, or require less code or data memory, than other seemingly equivalent constructs. Knowing the trade-offs between similar blocks and block parameter options will enable you to create Simulink models that have intuitive diagrams, and to produce the tight code that you want from Real-Time Workshop. Many of the options and constructs discussed in this section will improve the simulation speed of the model itself, even without code generation.


 General Modeling Techniques Look-Up Tables and Polynomials