Detailed Call Sequence - MATLAB & Simulink (original) (raw)
Main Content
The call sequence diagrams show the order in which internal methods are called when you run the specified method. If your System object™ does not overwrite a specified method, the default implementation of that method is used.
If you want a more abstract view of the method calls, see Summary of Call Sequence.
setup
Call Sequence
When you run a System object for the first time, setup
is called to perform one-time set up tasks. This sequence of methods is called:
- If the System object is not in use,
[release](call-sequence.html#mw%5F8b6cdb8c-86f6-4ef0-a386-10e4b908669a)
- validatePropertiesImpl
- isDiscreteStateSpecificationMutableImpl
- isInputDataTypeMutableImpl
- isInputComplexityMutableImpl
- isInputSizeMutableImpl
- isTunablePropertyDataTypeMutableImpl
- validateInputsImpl
- If the System object uses nondirect feedthrough methods, call isInputDirectFeedthroughImpl
- setupImpl
Running the Object or step
Call Sequence
When you run a System object in MATLAB®, either by calling the object as a function or callingstep
, this sequence of methods is called:
- If the System object is not in use (object was just created or was released),
[release](methods-timing.html#bs6lyvb-5)
[setup](call-sequence.html#mw%5F1b2664d3-7f81-4be9-b239-d96415198fde)
[reset](call-sequence.html#mw%5Fdacb505f-7d0d-4529-b373-5bebf781862a)
Else, if the object is in use (object was called andrelease
was not called)- If tunable properties have changed
- If the input size, data type, or complexity has changed
reset
Call Sequence
When reset is called, these actions are performed.
- If the object is in use (object was called and not released), call resetImpl
release
Call Sequence
When release is called, these actions are performed.
- If the object is in use (object was called and not released), call releaseImpl
See Also
setupImpl | stepImpl | releaseImpl | resetImpl