Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop   

System Update - Specify custom system update code

Library

Custom Code

Description

The System Update block adds user-specified custom code to the declaration, execution, and exit code sections of the SystemUpdate function that the code generator creates for the model or subsystem that contains the block.

Parameters

System Update Function Declaration Code

Code to be added to the declaration section of the generated SystemUpdate function.

System Update Function Execution Code

Code to be added to the execution section of the generated SystemUpdate function.

System Update Function Exit Code

Code to be added to the exit section of the generated SystemUpdate function.

Example

See Example: Using a Custom Code Block.

See Also

Model Header, Model Source, System Derivatives, System Disable, System Enable, System Initialize, System Outputs, System Start, System Terminate
Integrating External Code Using Custom Code Blocks in the Real-Time Workshop documentation

  


Related Products & Applications

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

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