RealToBoolean
Convert Real to Boolean signal
Library
Modelica/Blocks/Math
Description
This block computes the Boolean output yfrom the Real input u by the equation:
y = u ≥ threshold;
where threshold is a parameter.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_threshold | threshold | Output signal y is true, if input u >= threshold | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signal | input | 1 |
y | implicit | Connector of Boolean output signal | output | 1 |