Main Content

addPhysicalInterface

Create named physical interface in data dictionary

Since R2021b

Description

interface = addPhysicalInterface(dictionary,name) adds the physical interface specified by the name name to the data dictionary dictionary.

To remove an interface, use the removeInterface function.

example

Examples

collapse all

Create a data dictionary, then add a physical interface newInterface.

dictionary = systemcomposer.createDictionary("new_dictionary.sldd");
interface = addPhysicalInterface(dictionary,"newInterface")

Create a new model and link the data dictionary to the model. Then, open the Interface Editor to view the new interface.

arch = systemcomposer.createModel("newModel");
systemcomposer.openModel("newModel");
linkDictionary(arch,"new_dictionary.sldd");

Input Arguments

collapse all

Data dictionary, specified as a systemcomposer.interface.Dictionary object. For information on how to create a data dictionary, see createDictionary.

Name of new physical interface, specified as a character vector or string. This name must be a valid MATLAB® identifier.

Example: "newInterface"

Data Types: char | string

Output Arguments

collapse all

New physical interface, returned as a systemcomposer.interface.PhysicalInterface object.

More About

collapse all

Version History

Introduced in R2021b

See Also

Functions

Objects

Blocks

Tools