blockIntegerToProperty
Convert Integer (1,2,3) to Property (Violated, Undecided, Satisfied)
Extends from Interfaces.PartialConversion (Icon for conversion block).
Information
The Integer input u is converted to a Property output y according to the following table:
Integer u = Property y = 1 Violated 2 Undecided 3 Satisfied
An assert is triggered if the input is not 1, 2 or 3.
This block is demonstrated with example Conversions.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.IntegerInput | u | Integer input signal (with only values 1,2,3) | |
| Modelica_Requirements.Interfaces.PropertyOutput | y | Property output signal |