BooleanToProperty block

Requirements.LogicalBlocks.BooleanToProperty  ยท source

Icon of BooleanToProperty

Convert Boolean (false,true) to Property (Violated, Satisfied)

Extends Interfaces.PartialConversion

The Boolean input u is converted to a Property output y according to the following table:

Boolean u =Property y =
trueSatisfied
falseViolated

The block never outputs Undecided or Undefined. It is the block version of function LogicalFunctions.BooleanToProperty and is typically used to feed a Boolean condition (for example the output of a threshold comparison) into blocks with a Property input, such as Verify.Requirement.

This block is demonstrated with example Conversions.

Components and variables

NameTypeDescription
uModelica.Blocks.Interfaces.BooleanInputBoolean input signal
yRequirements.Interfaces.PropertyOutputProperty output signal