| Real-Time Workshop® | ![]() |
Custom Code
The System Enable block adds user-specified custom code to the declaration, execution, and exit code sections of the SystemEnable 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 Real-Time Workshop® 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 SystemEnable function.
Code to be added to the execution section of the generated SystemEnable function.
Code to be added to the exit section of the generated SystemEnable function.
See Example: Using a Custom Code Block.
Model Header, Model Source, System Derivatives, System Disable, System Initialize, System Outputs, System Start, System Terminate, System Update
Inserting Custom Code Into Generated Code in the Real-Time Workshop documentation
![]() | System Disable | System Initialize | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |