Detect true duration on input and construct output true duration based on output type
Simulink Design Verifier / Temporal Operators
This block detects a fixed number of consecutive time steps where the input signal is true and constructs an output signal based on the selected output type. The terminology used to explain the detector block is given below:
True duration of a signal — Consecutive time steps during which a signal is true
Length of the true duration of the signal — The number of time steps that constitute the true duration
Input detection phase — The phase that is complete at the final time step of the expected length of the input true duration
Output construction phase— The phase when the block constructs a true duration at the output based on the output type of the block
Delay duration — The number of time steps of delay after input detection, after which the output signal is true
On input detection, the Detector block constructs an output signal based on one of the two output types that you specify:
Delayed Fixed Duration—After the input detection is complete and after an optional delay, the output signal becomes
truefor a fixed number of time steps. The true duration of the output is independent of the input.
Synchronized—In the final time step of the input detection, the output becomes
trueas long as the input signal continues to be
true. The true duration of the output varies and is synchronized with the true duration of the input.
Port_1 — Input signal specified as boolean
The inputs of the Detector block are of boolean type.
Port_1 — Output signal returns as boolean
The outputs of the Detector block are of boolean type.
External reset — whether the block can be reset
off (default) | on
Specify whether the block can be reset to the start of the input detection by an external Boolean reset signal.
Output type — specify a fixed true duration length for the output
Delayed fixed duration (default) |
Delayed Fixed Duration (the default) to
specify a fixed true duration length for the output after an optional delay.
Synchronized to synchronize the output
true duration with that of the input.
Time steps for input detection — Length of the true duration for input detection
2 (default) | boolean
Length of the true duration for input detection (minimum is
Time steps for delay — specify the length of the delay duration
1 (default) | boolean
Delayed Fixed Duration, optionally specify
the length of the delay duration, after which the output becomes
Time steps for output durations — specify the length of the output true duration
3 (default) | boolean
Delayed Fixed Duration, specify the length
of the output true duration (minimum is
Introduced in R2011a