Context Menu – Operators and Control-Flow Elements
The context menu of an operator or control-flow element depends on the type of the operator or element:
- some options are available for all operators and control-flow elements
- some options are available for arithmetic, logical, comparison, input and conditional operators
- some options are available only for the conversion operator
- some options are available only for the assert operator
- some options are available for control-flow elements
All Operators and Control-Flow Elements:
Views
Opens the Views dialog window. All available views are listed, and the visibility of the diagram element in each view can be edited.
Create ASCET Link
Creates an ASCET link that opens the component and highlights the selected operator/control flow element in the drawing area.
Bring to Front
Places the selected diagram element in front of all other objects in the drawing area.
Send to Back
Places the selected diagram element in the back of all other objects in the drawing area.
Fill Color
Sets the fill color of the operator or control flow element.
Browse Connected Elements
Browses the elements connected to the diagram item. Not available if the operator/control flow element is unconnected.
Arithmetic, Logical, Comparison, Input and Conditional Operators:
Temporary Variable
Note |
|---|
Temporary variables are deprecated; they will be removed in a future ASCET version. Consider using common subexpression elimination instead. |
Adds a temporary variable to the output pin.
Add Input
Adds another input pin (and control pin, if necessary) to the operator or control flow element.
Remove Input
Removes an input pin (and control pin, if necessary) from the operator or control flow element.
Implementation
Allows to view (View submenu option) or remove (Reset submenu option) an operator implementation from a block diagram created with an older ASCET version.
Add Implementation Casts
Adds implementation casts to the connected inputs and outputs of the operator.
Conversion Operator:
Conversion
Opens the Conversion Attributes dialog window.
Conversion Type
Opens a submenu that determines whether the conversion operator converts the input element to limitInt (Limited) or wrapInt (WrapAround) type.
For limitInt elements: Determines if the limits for the converted type are user-defined (selected) or defined by the type limits (not selected).
For wrapInt elements: Determines if the code generator uses the entire type interval (not selected) or a smaller, user-defined interval (selected).
Selecting this menu option enables the Min and Max fields in the Conversion Attributes dialog window.
Assert Operator:
Assert
Opens the Assert Attributes dialog window.
Control-Flow Elements:
Show Sequence Calls
Shows/hides the sequence calls of a control flow element.
Kind
The options in the submenu, If Then and If Then Else, determine the type of the If block.
Add Condition
Adds a branch to the Switch block; see also Using the Switch.
Remove Condition
Removes the most recently added branch from the Switch block; see also Using the Switch.
Edit Literals
Opens an editor window for the branches of the Switch block; see also Using the Switch.
See also
Automatic Documentation – Views Window (Graphical Editors)
Automatic Documentation – Editing the Views of a Diagram Item
Viewing All Elements Connected to an Item
Introduction – Temporary Variables
Implementation Editor – Operator Implementation
Adding Implementation Casts to Operators Automatically
Conversion Attributes Dialog Window