System Update
Specify external system update code
Description
For a model or nonvirtual subsystem that includes theSystem Update块和一个block that uses aSystemUpdate
function, the code generator adds external code, which you specify, to theSystemUpdate
function that it generates. You can specify code for the code generator to add to the declaration, execution, and exit sections of the function code.
Note
If you include this block in a referenced model, the code generator ignores the block for simulation target builds, but processes the block for other system target files.
![](http://www.tatmou.com/help/releases/R2019b/rtw/ref/icon_system_update.png)
Parameters
See Also
Model Header|Model Source|System Enable|System Start|System Derivatives|System Disable|System Initialize|System Outputs|System Terminate
Topics
- Place External C/C++ Code in Generated Code(Embedded Coder)