Raising edge, falling edge, either edge monostable flip-flop
Simscape / Electrical / Control / General Control
The Monostable Flip-Flop (or monostable multivibrator) block generates a single output pulse of a specified duration when it is triggered externally. The external trigger is a Boolean signal. Pulse generation is triggered when a change is detected in the external trigger signal. The change detection can be:
When the output is true, a change in the external trigger signal has no effect.
The operation of a monostable flip-flop is represented in the following figure:
Trigger— Flip-flop trigger
Input trigger signal to the flip-flop.
Q— Flip-flop output
Flip-flop output signal.
Change detection— Change in trigger signal
Rising edge(default) |
Change detection strategy for output pulse generation.
Initial condition— Flip-flop initial condition
0(default) | scalar
The initial condition of the flip-flop.
Pulse duration (s)— Output pulse duration
0.01(default) | positive scalar
Duration of the output pulse, in s.
Sample time— Block sample time
0.001(default) | 0 | positive scalar
Time between consecutive block executions. During execution, the block produces outputs and, if appropriate, updates its internal state. For more information, see What Is Sample Time? (Simulink) and Specify Sample Time (Simulink).
For discrete-time operation, set the sample time to a positive value. For continuous-time
operation, set the sample time to
If this block is in a masked subsystem, or other variant subsystem that allows either continuous and discrete operation, promote the sample time parameter. Promoting the sample time parameter ensures correct switching between the continuous and discrete implementations of the block. For more information, see Promote Parameter to Mask (Simulink).