IncludeDiagramComponent

This block provides a generic interface for including diagrams from other Activate models. It gives the possibility to choose between several diagrams.

    IncludeDiagramComponent

Library

Activate/CustomBlocks

Description

This block provides a generic interface for including diagrams from other Activate models. The other model is designated either by its absolute path or relative path. The relative path is with respect to the path of the current model (so the current model must have been saved previously in this case). The diagram within the external model is designated by its path in the model. For example for the top diagram, the path is empty and so the corresponding parameter should be entered as an OML empty string. The included diagram is included in the current model at compile time so changes made to the included diagram are taken into account at each simulation run.
This block allows the definition of a context which is applied to the included diagram as an external context.
Note that the properties of the Super Block containing the included diagram, such as masking properties, are not relevent to this operation.

Parameters

IncludeDiagramComponent_0

NameLabelDescriptionData TypeValid Values

nin

Number of left ports

Defines the number of left ports of the block. This number must match the number of implicit input port blocks inside the included diagram.

Number

nout

Number of right ports

Defines the number of right ports of the block. This number must match the number of implicit output port blocks inside the included diagram.

Number

IncludeDiagramComponent_1

NameLabelDescriptionData TypeValid Values

ndiagrams

Number of possible diagrams

More than one diagrams may be specified to be included. This parameters specifies the number of specified diagrams.

Number

choice

Diagram choice

It specifies which diagram to include if more than one diagram is specified.

Scalar

work

Workspace

includes

Include Diagrams

Structure

includes/path

Model path

This parameter can be:
- Absolute or relative path to the external model containing the included diagram.
- Empty string ('') to designate the current simulated model. This is the default behavior.
- A '.' to designate the model that contains the include diagram block.

Cell of strings

includes/dpath

Diagram path

The diagram path within the external model.

Cell of strings

includes/context

Context

An OML script used as external context to the included diagram.

Cell of strings

Ports

NameTypeDescriptionIO TypeNumber

Port 1

implicit

output

nout

Port 2

implicit

input

nin