Package Modelica.​Blocks.​Interaction.​Show
Library of blocks to show variables in a diagram animation

Information

Standard package icon.

Extends from Modelica.​Icons.​Package (Icon for standard packages).

Package Contents

NameDescription
BooleanValueShow Boolean value from numberPort or from number input field in diagram layer dynamically
IntegerValueShow Integer value from numberPort or from number input field in diagram layer dynamically
RealValueShow Real value from numberPort or from number input field in diagram layer dynamically

Block Modelica.​Blocks.​Interaction.​Show.​RealValue
Show Real value from numberPort or from number input field in diagram layer dynamically

Information

This block visualizes a Real number in a diagram animation. The number to be visualized can be defined in the following ways:

The two versions of the block are shown in the following image (in the right variant, the name of the variable value that is displayed is also shown below the icon):

RealValue.png

The usage is demonstrated, e.g., in example Modelica.Blocks.Examples.RealNetwork1.

Parameters

TypeNameDefaultDescription
Booleanuse_numberPorttrue= true, if numberPort enabled
IntegersignificantDigits2Number of significant digits to be shown

Inputs

TypeNameDefaultDescription
Realnumber0Number to visualize if use_numberPort=false (time varying)

Connectors

TypeNameDescription
input RealInputnumberPortNumber to be shown in diagram layer if use_numberPort = true
output RealOutputshowNumber 

Block Modelica.​Blocks.​Interaction.​Show.​IntegerValue
Show Integer value from numberPort or from number input field in diagram layer dynamically

Information

This block visualizes an Integer number in a diagram animation. The number to be visualized can be defined in the following ways:

The two versions of the block are shown in the following image (in the right variant, the name of the variable value that is displayed is also shown below the icon):

IntegerValue.png

The usage is demonstrated, e.g., in example Modelica.Blocks.Examples.IntegerNetwork1.

Parameters

TypeNameDefaultDescription
Booleanuse_numberPorttrue= true, if numberPort enabled

Inputs

TypeNameDefaultDescription
Integernumber0Number to visualize if use_numberPort=false (time varying)

Connectors

TypeNameDescription
input IntegerInputnumberPortNumber to be shown in diagram layer if use_numberPort = true
output IntegerOutputshowNumber 

Block Modelica.​Blocks.​Interaction.​Show.​BooleanValue
Show Boolean value from numberPort or from number input field in diagram layer dynamically

Information

This block visualizes a Boolean variable in a diagram animation. The Boolean variable to be visualized can be defined in the following ways:

If the Boolean variable is false the block is "grey", otherwise, it is "green". The two versions of the block are shown in the following image (in the right variant, the name of the variable value that is displayed is also shown below the icon):

BooleanValue.png

The usage is demonstrated, e.g., in example Modelica.Blocks.Examples.BooleanNetwork1.

Parameters

TypeNameDefaultDescription
Booleanuse_activePorttrue= true, if activePort enabled

Inputs

TypeNameDefaultDescription
BooleanactivefalseBoolean variable to visualize if use_activePort=false (time varying)

Connectors

TypeNameDescription
input BooleanInputactivePortBoolean variable to be shown in diagram layer if use_activePort = true
output BooleanOutputshowActive