Signal\Logical\Boolean
Domains: Discrete, Continuous. Size: 1-D. Allowed in: Block Diagrams.
This model has a continuous-time and a discrete-time implementation.
• | Continuous |
• | Discrete |
Initially the output is equal to the parameter initial. Otherwise the output signal is changed each time the control input changes from true to false (falling edge of the control input):
output = not oldoutput; (oldcontrol = true and control = false)
output = oldoutput; (otherwise)
Port name |
Data type |
Description |
Range |
Inputs |
|
||
control |
boolean |
control input |
false/true |
Outputs |
|
||
output |
boolean |
output |
false/true |
Parameters |
|
||
initial |
boolean |
initial output |
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.