Boolean To Real - MapleSim Help

Boolean To Real

Converts a Boolean signal to a real signal

Description

The Boolean To Real components converts the Boolean input, $u$, to a real value preset by the parameters,  and . The equation of this component is

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

Connections

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

Variables

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

Parameters

 Symbol Default Units Description Modelica ID $1.0$ - Output signal for true Boolean input realTrue $0.0$ - Output signal for false Boolean input realFalse