MATLAB Examples

Advanced Enabled Subsystems

This model shows what happens when a sine wave is fed into an enabled subsystem. The four subsystems in the model contain integrators, either discrete or continuous as described by the Subsystem name. After running the simulation, the two scopes show the results for the discrete enabled subsystems (top scope) and continuous enabled subsystems (bottom scope.)

Each Scope shows the output for all combinations of where the states or outputs of the enabled subsystem are either held or reset when the subsystem is disabled. The colors on the scope correspond to the following state and output configuration.

Yellow: Reset states; Held outputs

Purple: Reset states; Reset outputs

Cyan: Held states; Held outputs

Red: Held states; Reset outputs