User`s guide
11 Real-Time Workshop Libraries
11-8
• Subsystem Enable
• Subsystem Disable
• Subsystem Outputs
• Subsystem Update
• Subsystem Derivatives
The location of the block in your model determines the location of the custom
code. In other words, the code is local to the subsystem that you select. For
example, the Subsystem Outputs block places code in
mdlOutputs when the
code block resides in the root model, but the code is placed in the system’s
outputs function when it resides in an enabled subsystem.
The ordering for a triggered system is:
1 Output entry
2 Output exit
3 Update entry
4 Update exit code