System Initialize - Specify custom system initialization code

Library

Custom Code

Description

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

Parameters

System Initialize Function Declaration Code

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

System Initialize Function Execution Code

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

System Initialize Function Exit Code

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

Example

See Example: Using a Custom Code Block.

See Also

Model Header, Model Source, System Derivatives, System Disable, System Enable, System Outputs, System Start, System Terminate, System Update
Inserting Custom Code Into Generated Code in the Real-Time Workshop documentation

  


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