Boolean To Integer - MapleSim Help

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

Boolean To Integer

Converts a Boolean signal to an integer signal

Description

The Boolean To Integer component converts the Boolean input, $u$, to an integer value preset by the parameters  and . The equation of this component is

 $y=\left\{\begin{array}{cc}\mathrm{integerFalse}& u=\mathrm{false}\\ \mathrm{integerTrue}& u=\mathrm{true}\end{array}\right\$

Connections

 Name Description $u$ Connection for the Boolean input signal $y$ Connection for the integer output signal

Variables

 Symbol Units Description $u$ - Boolean input signal $y$ - Integer output signal

Parameters

 Symbol Default Units Description Modelica ID Integer True $1.0$ - Output signal for true Boolean input integerTrue Integer False${}_{}$ $0.0$ - Output signal for false Boolean input integerFalse

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