removeReference - Remove reference to dictionary - MATLAB (original) (raw)
Main Content
Remove reference to dictionary
Since R2021a
Syntax
Description
removeReference([dictionary](#mw%5F286a4230-34d0-4fa0-b506-d0ca018f87e4%5Fsep%5Fmw%5F60143387-11ee-4c35-87c7-e41014857fcf),[reference](#mw%5F286a4230-34d0-4fa0-b506-d0ca018f87e4%5Fsep%5Fmw%5F7aa8e66e-7c98-45a0-9bea-aeb12564943a))
removes a referenced dictionary from a dictionary in a System Composer⢠model.
Examples
Add a data interface named newInterface
to the local dictionary of the model. Save the local dictionary to a shared dictionary as an SLDD file.
arch = systemcomposer.createModel("newModel"); systemcomposer.openModel("newModel"); addInterface(arch.InterfaceDictionary,"newInterface"); saveToDictionary(arch,"TopDictionary") topDictionary = systemcomposer.openDictionary("TopDictionary.sldd");
Create a new dictionary and add it as a reference to the existing dictionary.
refDictionary = systemcomposer.createDictionary("ReferenceDictionary.sldd"); addReference(topDictionary,"ReferenceDictionary.sldd")
Remove the referenced dictionary. Confirm in the Model Explorer.
removeReference(topDictionary,"ReferenceDictionary.sldd")
Input Arguments
Referenced dictionary, specified as a character vector or string of the name of the referenced dictionary with the .sldd
extension.
Example: "ReferenceDictionary.sldd"
Data Types: char
| string
More About
Term | Definition | Application | More Information |
---|---|---|---|
Data dictionary | A data dictionary is a repository of data relevant to your model. The Architectural Data section of a data dictionary stores shared definitions used in SimulinkĀ® and architecture model interfaces, such as port interfaces, data types, and system wide constants. For more information, see What Is a Data Dictionary? | You can save local interfaces on a System Composer model to the Architectural Data section of a Simulink data dictionary using the Interface Editor. In addition to the Interface Editor, you can also use the Architectural Data Editor to manage and modify interfaces and value types. | Manage Interfaces with Data DictionariesReference Data DictionariesStore Shared Data in Architectural Data Section |
Data interface | A data interface defines the kind of information that flows through a port. The same interface can be assigned to multiple ports. A data interface can be composite, meaning that it can include data elements that describe the properties of an interface signal. | Data interfaces represent the information that is shared through a connector and enters or exits a component through a port. Use the Interface Editor to create and manage data interfaces and data elements and store them in a data dictionary for reuse between models. | Create Architecture Model with Interfaces and Requirement LinksDefine Port Interfaces Between Components |
Data element | A data element describes a portion of an interface, such as a communication message, a calculated or measured parameter, or other decomposition of that interface. | Data interfaces are decomposed into data elements that can represent pins or wires in a connector or harness, messages transmitted across a bus, and data structures shared between components. | Create InterfacesAssign Interfaces to Ports |
Value type | A value type can be used as a port interface to define the atomic piece of data that flows through that port and has a top-level type, dimension, unit, complexity, minimum, maximum, and description. | You can also assign the type of data elements in data interfaces to value types. Add value types to data dictionaries using the Interface Editor so that you can reuse the value types as interfaces or data elements. | Create Value Types as Interfaces |
Owned interface | An owned interface is an interface that is local to a specific port and not shared in a data dictionary or the model dictionary. | Create an owned interface to represent a value type or data interface that is local to a port. | Define Owned Interfaces Local to Ports |
Adapter | An adapter connects two components with incompatible port interfaces by mapping between the two interfaces. An adapter can act as a unit delay, rate transition, or merge. You can also use an adapter for bus creation. Use the Adapter block to implement an adapter. | With an adapter, on the Interface Adapter dialog box, you can: create and edit mappings between input and output interfaces, apply an interface conversionUnitDelay to break an algebraic loop, apply an interface conversionRateTransition to reconcile different sample time rates for reference models, apply an interface conversion Merge to merge two or more message or signal lines, and when output interfaces are undefined, you can use input interfaces in bus creation mode to author owned output interfaces. | Interface AdapterAdapter |
Version History
Introduced in R2021a
See Also
Functions
- addInterface | moveInterface | addPhysicalInterface | removeInterface | createInterface | setName | setInterface | getInterface | getInterfaceNames | addElement | removeElement | getElement | setName | setType | createOwnedType | getSourceElement | getDestinationElement | systemcomposer.createDictionary | systemcomposer.openDictionary | saveToDictionary | isOpen | getFileName | linkDictionary | unlinkDictionary | addReference | makeOwnedInterfaceShared | addValueType | createInterface | setName | setDataType | setDimensions | setUnits | setComplexity | setMinimum | setMaximum | setDescription | addServiceInterface | setFunctionPrototype | getFunctionArgument | setAsynchronous | systemcomposer.getSelectedInterfaces | IsAdapterComponent
Objects
- systemcomposer.ValueType | systemcomposer.interface.DataInterface | systemcomposer.interface.DataElement | systemcomposer.interface.PhysicalDomain | systemcomposer.interface.PhysicalInterface | systemcomposer.interface.PhysicalElement | systemcomposer.interface.Dictionary | systemcomposer.interface.ServiceInterface | systemcomposer.interface.FunctionArgument | systemcomposer.interface.FunctionElement | addServiceInterface | setFunctionPrototype | getFunctionArgument | setAsynchronous