| Simulink Reference | ![]() |
Create branches of a block diagram that apply only to simulation or only to code generation.
Library
Description
This block outputs the signal at its Sim port only if the model that contains it is being simulated. It outputs the signal at its RTW port only if code is being generated from the model. This allows you to create branches of a model's block diagram that apply only to simulation or only to code generation. RTW does not generate code for blocks connected to the Sim port. If you enable block reduction optimization (see Block reduction optimization in the online Simulink documentation), Simulink eliminates blocks in the branch connected to the block's RTW port when compiling the model for simulation.
Data Type Support
The Environment Controller block accepts signals of any numeric or data type. It outputs the type at its input.
Parameters and Dialog Box
| Enabled Subsystem | Extract Bits | ![]() |
© 1994-2005 The MathWorks, Inc.