Specify external system update code
For a model or nonvirtual subsystem that includes the System
Update block and a block that uses a SystemUpdate
function,
the code generator adds external code, which you specify, to the SystemUpdate
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.
Model Header | Model Source | System Derivatives | System Disable | System Enable | System Initialize | System Outputs | System Start | System Terminate