| Contents | Index |
Custom Code
The System Outputs block adds user-specified custom code to the declaration, execution, and exit code sections of the SystemOutputs function that the code generator creates for the model or subsystem that contains the block.
Note If you include this block in a submodel (model referenced by a Model block), the Simulink Coder build process ignores the block for simulation target builds, but includes any specified custom code in the build process for other targets. |
Code to be added to the declaration section of the generated SystemOutputs function.
Code to be added to the execution section of the generated SystemOutputs function.
Code to be added to the exit section of the generated SystemOutputs function.
See Example: Using a Custom Code Block.
Model Header, Model
Source, System Derivatives, System Disable, System
Enable, System Initialize, System Start, System
Terminate, System Update
Insert Custom
Code Blocks in the Simulink Coder documentation

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 |