Polybench® for biosignals / reference 1.34.1
Results in 1.0 (Pseudo-True) continuously, if the S input is Pseudo-True for at least one sample period, or results in 0.0 (Pseudo-False) continuously, if the R input is Pseudo-True for at least one sample period.

Flip-Flop (set/reset)


This operator functions as a set-reset flip-flop, using signal values of 0 (pseudo-false) or 1 (pseudo-true). If the Set input is 1 or greater than 1 for at least one sample period, the output becomes 1. If the Reset input becomes 1 or greater than 1 for at least one sample period, the output becomes 0.

Operator ports

Input S: Floating point values

Input R: Floating point values

Output FlipFlop: Floating point values


Find more information about changing properties here: "Properties Viewer"

type: Word or phrase
The name of the object in the project. This name must not contain '.', '$' nor '@' characters.

For more information about the rules and usage of the Caption property, please refer to "Caption property - background and usage".

type: See description
Optional documentation of this object. If this object is an operator, the Documentation text is displayed below the operator symbol.


Pseudo-boolen signal values are values that are defined to be boolean False if they are 0, and boolean True if they are greater than or equal to 1. If boolean values are defined this way, a logical AND operation equals multiplication, and a logical OR operation equals addition. The set-reset flip-flop can be used to convert a short pseudo-boolean True value in a continuous pseudo-boolean True or False signal.

This operator expects both inputs to have an equal number of channels, or one input to have one channel. The output has the highest number of channels of both input channels.

If one input has one channel, the flip-flop is set or reset for all output channels at once. If both inputs have an equal channel count, the operation is carried out for every corresponding channel separately.

The first, or S input has priority above the second input. Output channel naming and numbering are copied from the S input. Therefore a feedback loop should be connected to the second (or R) input, in order to get consistent functionality.

Read more about pseudo-boolean states (pseudo-true and pseudo-false) here: "Pseudo-booleans and triggers".