Overview of System Composer API - MATLAB & Simulink (original) (raw)

Main Content

The System Composer™ application programming interface (API) allows you to create or change System Composer architecture models and linked artifacts from the MATLAB® Command Window. By placing System Composer API commands in a MATLAB function or script, you can:

The System Composer API consists of objects that represent architecture model elements. For example, the API objects systemcomposer.arch.Component and systemcomposer.arch.Connector represent components and connectors in a System Composer model. When you modify the writable properties of an API object or call one of its object functions, you affect the corresponding object in the System Composer model. When you use the System Composer model canvas to perform an operation on an object in the architecture model, you affect the corresponding API object.

Note

You cannot undo any operation in the System Composer model canvas or editing tool that you perform by using the System Composer API. If you perform an editing operation through the API, theUndo and Redo buttons in the quick access toolbar are disabled.

Hierarchy of System Composer API Objects for Model Building

System Composer API objects are organized in a containment hierarchy. Each architectural element is owned by a root architecture. For example, if component A contains component B in a System Composer model, then the API object for the architecture of componentA contains the API object for the architecture of componentB.

This diagram shows the hierarchy of objects in the System Composer model builder API.

System Composer application programmatic interfaces block diagram showing relationships between a model and its internal structure linked to a data dictionary containing interface information

The hierarchy consists of levels of containment that depends on depth:

See Also

Objects

Topics