Signal\Logical\Boolean
Domains: Discrete, Continuous. Size: 1-D. Allowed in: Block Diagrams.
This block has 8 implementations varying from a 2-input OR to a 9-input OR.
• | inputs_2 |
• | inputs_3 |
• | inputs_4 |
• | inputs_5 |
• | inputs_6 |
• | inputs_7 |
• | inputs_8 |
• | inputs_9 |
The output signal of this submodel for the two-input OR is according the truth table below:
input1 |
input2 |
output |
false |
false |
false |
false |
true |
true |
true |
false |
true |
true |
true |
true |
The output signal for the other OR implementations follows a similar pattern. The output signal is only false when all input signals are equal to false.
Port name |
Data type |
Description |
Range |
Inputs |
|
||
input1 |
boolean |
First OR input |
false/true |
input2 |
boolean |
Second OR input |
false/true |
Outputs |
|
||
output |
boolean |
Result of the OR operation |
false/true |
This block operates with boolean inputs. Real of integer inputs can also be used but will lead to a warning during processing. Be careful with using real or integer inputs: A value of 0.0 is converted to false, any other value is converted to true.