Model Source - Specify custom source code

Library

Custom Code

Description

The Model Source block adds user-specified custom code to the model.c or model.cpp file that the code generator creates for the model that contains the block.

Parameters

Top of Model Source

Code to be added at the top of the model's generated source file.

Bottom of Model Source

Code to be added at the top of the model's generated source file.

Example

See Example: Using a Custom Code Block.

See Also

Model Header, System Derivatives, System Disable, System Enable, System Initialize, 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