BooleanToProperty block
Requirements.LogicalBlocks.BooleanToProperty
ยท source
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 = true Satisfied false Violated
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
| Name | Type | Description |
|---|---|---|
u | Modelica.Blocks.Interfaces.BooleanInput | Boolean input signal |
y | Requirements.Interfaces.PropertyOutput | Property output signal |