systemcomposer.createActivity
Description
systemcomposer.createActivity(
creates a System Composer™ activity diagram with the name activityName
)activityName
and opens the
activity diagram.
Examples
Create Activity Diagram
Create an activity diagram and open it.
systemcomposer.createActivity("activity_name")
Input Arguments
activityName
— Name of new activity diagram
character vector | string
Name of new activity diagram, specified as a character vector or string. This name must be a valid MATLAB® identifier.
Example: "activity_name"
Data Types: char
| string
More About
Definitions
Term | Definition | Application | More Information |
---|---|---|---|
activity diagram | An activity diagram describes an activity in an architectural system. An activity describes system behavior that models the flow of tokens from inputs to outputs through a controlled sequence of actions. An activity diagram contains action nodes with pins connected by flow lines. | Use activity diagrams to conceptualize a system, visualize functional flow through actions or decisions, and understand how system components interact with one another. | |
token | Tokens are objects that flow in the activity diagram. A token can represent data such as structures and integers, or a token can simply pass on the control. | These are the types of tokens:
| |
action node | An action node is a key building block in an activity diagram. An action node represents an action to be executed. Action nodes consume input tokens and produce output tokens on pins. | Use a MATLAB function or a nested activity diagram to describe the behavior of an action node. | |
control node | A control node routes a logical flow of tokens through the system. | Use control nodes and flows to route tokens. Control nodes can be used to initialize, split, merge, and terminate token flows. | Use Control Nodes to Manipulate Token Flows |
pin | A pin directs tokens in or out of an action node. The directionality of the pin represents input or output. You can connect pins by object flows. | Use pins to route an object token to or from an Action Node. Pins are also used to store object tokens before or during execution. You can use pins only for object flows. | |
type | A type defines the contents of a token that flows through a pin. A type has dimension, unit, complexity, minimum, maximum and description. |
These are three token types in activity diagrams:
| |
parameter node | A parameter node route tokens into or out of a nested activity diagram. When a pin is created, a corresponding parameter node will be created inside the nested activity. | Use parameter node to define how tokens enter or leave a nested activity. There are two types of parameter nodes input and output. | |
flow | A flow in an activity diagram connects two nodes. A dashed line represents a control flow. A solid line represents an object flow. | These are the types of flows:
| Simulate, Visualize, and Validate Activity Diagrams |
Version History
Introduced in R2024a
See Also
Functions
Tools
Blocks
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)