Boolean To Integer - MapleSim Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim : MapleSim Component Library : Signal Blocks : Signal Converters : componentLibrary/signalBlocks/signalConverters/BooleanToInteger

Boolean To Integer

Convert Boolean to Integer signal

 

Description

Equations

Connections

Parameters

Modelica Standard Library

Description

The Boolean To Integer component converts the Boolean input to an integer value preset by the parameters Integer True and Integer False.

Equations

y={Integer TrueuInteger Falseotherwise

Connections

Name

Description

Modelica ID

u

Boolean input signal

u

y

Integer output signal

y

Parameters

Name

Default

Units

Description

Modelica ID

Integer True

1

 

Output signal for true Boolean input

integerTrue

Integer False

0

 

Output signal for false Boolean input

integerFalse

Modelica Standard Library

The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.

See Also

Signal Blocks

Signal Converters