Functions Editor
Visualize and author component functions in software architectures
Description
The Functions Editor allows you to author functions in the architecture level for inline components. You can then implement Simulink® behaviors for your authored functions. For reference components, the functions are automatically created from the referenced behavior Simulink models.
Use the Functions Editor to:
Author and visualize functions.
Add and delete functions.
Change the execution order of the functions.
Change the name of a function.
Change the period of a function.
Implement behaviors for functions.
Add custom properties to functions using stereotypes.
Open the Functions Editor
System Composer™ toolstrip: Navigate to Modeling > Functions Editor.
Examples
Parameters
Add function
— Add function to software component
button
Add a function to a software component by clicking .
Remove function
— Remove function from software component
button
Remove a function from a software component by clicking .
Increase execution order
— Increase execution order of function
button
Increase the execution order of a function by clicking .
This option is only available if Order functions by dependency is unchecked.
Decrease execution order
— Decrease execution order of function
button
Decrease the execution order of a function by clicking .
This option is only available if Order functions by dependency is unchecked.
Update diagram
— Update diagram to refresh functions
button
Update the software architecture diagram to refresh the functions in the
Functions Editor by clicking .
Order functions by dependency
— Whether to order functions by dependency
off (default) | on
Select this check box to order functions in the Functions Editor by dependency.
You can order functions automatically based on their data
dependencies. This functionality is available for functions from behavior models. To enable
automatic sorting, select the Order functions by dependency
check box or enable OrderFunctionsByDependency
on the architecture
model.
Programmatic Use
More About
Version History
Introduced in R2021b