IntegerValue

Show Integer value from numberPort or from number input field in diagram layer dynamically

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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

  • If useNumberPort = true (which is the default), an Integer input is present and this input variable is shown.
  • If useNumberPort = false no input connector is present. Instead, an Integer input field is activated in the parameter menu and the Integer expression from this input menu is shown.

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 (1)

use_numberPort

Value: true

Type: Boolean

Description: = true, if numberPort enabled

Inputs (1)

number

Default Value: 0

Type: Integer

Description: Number to visualize if use_numberPort=false (time varying)

Connectors (2)

numberPort

Type: IntegerInput

Description: Number to be shown in diagram layer if use_numberPort = true

showNumber

Type: IntegerOutput

Used in Examples (3)

IntegerNetwork1

Modelica.Blocks.Examples

Demonstrates the usage of blocks from Modelica.Blocks.MathInteger

BooleanNetwork1

Modelica.Blocks.Examples

Demonstrates the usage of blocks from Modelica.Blocks.MathBoolean

Interaction1

Modelica.Blocks.Examples

Demonstrates the usage of blocks from Modelica.Blocks.Interaction.Show