Use Interface Editor in Views
This example shows how to use the Interface Editor tool directly from the Architecture Views Gallery to add and edit interfaces using the context of a subset of components from the top model.
Launch Interface Editor in Views
Launch the keyless entry system project.
openProject("scKeylessEntrySystem");
After launching the keyless entry system project, the KeylessEntryArchitecture
architecture model opens.
To launch the Architecture Views Gallery tool, on the System Composer™ toolstrip of the
KeylessEntryArchitecture
architecture model, from the Modeling tab, click Architecture Views.In the View Browser, select the
Top Level Components
view.To dock the Interface Editor tool below your view, on the Architecture Views Gallery toolstrip, from the Design section, click Interface Editor.
To highlight ports, in the Interface Editor tool, expand
Interfaces.sldd
, right-click theKeyFOBPosition
interface and select Highlight port(s) using this interface. TheKeyFOBPosition
interface is assigned to these ports.
Add and Edit Data Elements to Data Interfaces Using Interface Editor
To further describe the data interface KeyFOBPositon
while considering a subset of components in your architecture view, you can add descriptive data elements to your data interface.
On the Interface Editor, from your
Top Level Components
view, select theKeyFOBPosition
data interface.Add two data elements by clicking the button twice. Name the first data element
radialDist
to represent the distance the FOB is from the electronic keyless system. TheradialDist
element should be of Typedouble
, Dimensions1
, and Unitsm
for meters. Name the second data elementisInsideVehicle
to represent whether the FOB is inside or outside of the vehicle. TheisInsideVehicle
element should be of Typeboolean
and Dimensions1
.
You can also edit interfaces or elements from the Interface Properties or Interface Element Properties tab on the right of the Architecture Views Gallery.
See Also
Tools
- Architecture Views Gallery | Interface Editor | Requirements Editor (Requirements Toolbox) | Requirements Manager (Requirements Toolbox)
Functions
openViews
|createView
|getView
|deleteView
|modifyQuery
|runQuery
|removeQuery
|addElement
|removeElement
|getQualifiedName
|createSubGroup
|getSubGroup
|deleteSubGroup
|getQualifiedName
|lookup
Objects
systemcomposer.view.View
|systemcomposer.view.ElementGroup
|systemcomposer.query.Constraint
|systemcomposer.interface.DataInterface
|systemcomposer.interface.DataElement