IncludeDiagram

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

    IncludeDiagram

Library

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

IncludeDiagram_0

NameLabelDescriptionData TypeValid Values

nin

Number of input ports

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

Number

nevin

Number of input event ports

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

Number

nout

Number of output ports

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

Number

nevout

Number of output event ports

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

Number

IncludeDiagram_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:
- an absolute or relative path to the external model containing the included diagram.
- an empty string ('') to designate the current simulated model. This is the default behavior.
- a '.' to designate the model that contains the IncludeDiagram block.

Cell of strings

includes/dpath

Diagram path

The diagram path within the external model. It is the path within the model to get a specific diagram, which is accessible with /

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

explicit

output

nout

Port 2

explicit

input

nin

Port 3

activation

input

nevin

Port 4

activation

output

nevout