show
View architectural data of Simulink data dictionary in Architectural Data Editor
Since R2023b
Syntax
Description
show(
opens the architectural data
object or element and displays the object in the Architectural Data
Editor.objName
)
Examples
View Architectural Data of Simulink Data Dictionary in Architectural Data Editor
To view the architectural data of a Simulink® data dictionary in the Architectural Data Editor, use the
show
function. For an example that shows more of the workflow for
related functions, see Create Architectural Data Object and Use It to Configure Architectural Data.
show(archDataObj);
View Data Interface in Architectural Data Editor
This example shows how to view a data interface in the Architectural Data Editor.
Create a Simulink.dictionary.ArchitecturalData
object by opening an existing data
dictionary.
archDataObj = Simulink.dictionary.archdata.open("myInterfaceDict.sldd")
archDataObj = ArchitecturalData with properties: DictionaryFileName: 'myInterfaceDict.sldd' Interfaces: [1×1 Simulink.dictionary.archdata.DataInterface] DataTypes: [0×0 Simulink.dictionary.archdata.DataType] Constants: [0×0 Simulink.dictionary.archdata.Constant]
Create an interface object of the specified data interface.
interfaceObj = getInterface(archDataObj,"DataInterface")
interfaceObj = DataInterface with properties: Name: 'DataInterface' Description: '' Elements: [1×3 Simulink.dictionary.archdata.DataElement] Owner: [1×1 Simulink.dictionary.ArchitecturalData]
Use the show
function to display the data interface in the
Architectural Data Editor.
show(dataInterfaceObj)
View Data Element in Architectural Data Editor
This example shows how to view a data element in the Architectural Data Editor.
Create a Simulink.dictionary.ArchitecturalData
object by opening an existing data
dictionary.
archDataObj = Simulink.dictionary.archdata.open("myInterfaces.sldd")
archDataObj = ArchitecturalData with properties: DictionaryFileName: 'myInterfaces.sldd' Interfaces: [1×1 Simulink.dictionary.archdata.DataInterface] DataTypes: [0×0 Simulink.dictionary.archdata.DataType] Constants: [0×0 Simulink.dictionary.archdata.Constant]
Use the getElement
function to access a data element.
dataElem1 = getElement(interfaceObj,"element1")
dataElem1 = DataElement with properties: Name: 'element1' Type: [1×1 Simulink.dictionary.archdata.ValueType] Description: '' Dimensions: '1' Owner: [1×1 Simulink.dictionary.archdata.DataInterface]
Use the show
function to display the data element in the
Architectural Data Editor.
show(dataElem1)
Input Arguments
objName
— Architectural Data object
Simulink.dictionary.ArchitecturalData
object | Simulink.dictionary.archdata.DataInterface
object | Simulink.dictionary.archdata.DataElement
object | array of Simulink.dictionary.archdata.Constant
objects | array of Simulink.dictionary.archdata.DataType
objects | array of interface objects | Simulink.dictionary.archdata.AliasType
object | Simulink.dictionary.archdata.ValueType
| Simulink.dictionary.archdata.NumericType
| Simulink.dictionary.archdata.PhysicalInterface
| Simulink.dictionary.archdata.PhysicalElement
| Simulink.dictionary.archdata.StructType
| Simulink.dictionary.archdata.StructElement
Architectural Data object, specified as a Simulink.dictionary.ArchitecturalData
object, or any object owned by
Simulink.dictionary.ArchitecturalData
.
Version History
Introduced in R2023b
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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)