Add Software Elements to the DATAFLOW Diagram

by Marco Wuelser

 

Add Active Part to Diagram

To add an Active Part to the current diagram, use one of the following methods:

  1. Drag it from the toolbox window to the Diagram Editor and release the mouse button or
  2. Type “Acti…” in the Diagram Editor and select the Active Part element from the drop-down list.

 

The name and priority can be changed with a double-click on the title bar of the active part.

 

Add Active Part Component

 

Add Active Container to Diagram

To add an Active Container to the current diagram, drag it from the toolbox window to the Diagram Editor and release the mouse button or use the quick insert method by typing “Act…” in an empty Diagram Editor area. The name can be changed by double-clicking on the title bar of the Container.

 

Add Active Container Component

 

Add Interrupt to Diagram

To add an Interrupt to the current diagram, drag it from the Toolbox Window to the Diagram Editor and release the mouse button. The name and Interrupt Handler name can be changed by double-clicking on the title bar of the Interrupt or on the title bar of the Interrupt Handler.

 

Add Interrupt Component

 

Add additional Interrupt Handler

Add additional Interrupt Handler

 

Change position of an Element in diagram

Any diagram element can be moved around by dragging it with the mouse or by changing the position property in the property inspector.

Change Element Position

 

Move component to Container

When a component (Active Part, Interrupt, Active Container or System Component) is dragged on top of a container (System Component or Active Container) and released, the component is moved with all its children to the child diagram of the container.

Move Component to Container


This also works when multiple components, elements and channels are selected. In this case, all selected elements will be moved to the child diagram as well. Unselected channels will be disconnected and remain in the parent diagram.

 

NOTE

An exception to this are external ports. Those will never be moved to the child diagram and remain in the parent diagram.

 

NOTE

When a channel contains Source/Sink Elements, all of those must be moved together to a child diagram. Otherwise, the move will fail. It is not allowed to have references from the source to sink to other diagrams.

 

As an alternative, the elements can also be cut from a diagram (Ctrl + X) and pasted into the target diagram (Ctrl + V).

 

Add Port to Component

To add a port to a software component, drag and drop it from the toolbox window onto the component. The name can be changed by double-clicking on the port.

It is also possible to change the type of port using the context menu.

 

blobid13.png

Add Port

 

NOTE

The Diagram Editor does allow placing an unlimited number of ports in the components. For the purposes of code generation, there are some limits, so be aware of the following:

-           An Active Part should have one input port named “PortIn” and can have multiple output ports. If more than one input port is used, these will be merged to a single input port during code generation.

-           An Interrupt must not have an input port and can have multiple output ports.

-           An Active Container can have multiple input ports and multiple output ports.

 

Add Timer to Active Part

To add a timer to an Active Part, drag and drop it from the toolbox window onto the Active part. The name, type and period can be changed by double-clicking on the timer.

It is also possible to change these values in the property inspector.

mceclip0.png

Add Timer

 

NOTE

Interrupts and Active Containers cannot have timers.

 

Add Spacer to Component

To add a spacer to a component, drag and drop it from the Toolbox Window onto the component. A spacer has no properties to change.


Add Spacer

Go back