Signal\Logical\Real
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 false to true (rising edge of the control input):
output = not oldoutput; (oldcontrol = false and control = true)
output = oldoutput; (otherwise)
with
|
false |
true |
inputs |
<= 0.5 |
> 0.5 |
output |
0 |
1 |
Port name |
Data type |
Description |
Range |
Inputs |
|
||
control |
boolean |
control input |
<= 0.5 / > 0.5 |
Outputs |
|
||
output |
boolean |
output |
1 or 0 |
Parameters |
|
||
initial |
boolean |
initial output |
<= 0.5 / > 0.5 |
This block operates with real inputs. Boolean inputs can also be used but will lead to a warning during processing.