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 |
The initial output of this model is equal to the initial value oldoutput_initial. Otherwise the output signal is equal to the input signal each time the control input changes from false to true:
output = input; (oldcontrol = false and control = true)
output = oldoutput; (otherwise)
with
|
false |
true |
inputs |
<= 0.5 |
> 0.5 |
output |
0.0 |
1.0 |
Port name |
Data type |
Description |
Range |
Inputs |
|
||
input |
real |
input |
<= 0.5 / > 0.5 |
control |
real |
control input |
<= 0.5 / > 0.5 |
Outputs |
|
||
output |
real |
output |
0 or 1 |
Parameters |
|
||
oldcontrol_initial oldoutput_initial |
real real |
Initial value of the control signal. Initial value of the output |
<= 0.5 / > 0.5 <= 0.5 / > 0.5 |
This block operates with real inputs. Boolean inputs can also be used but will lead to a warning during processing.