Polybench® Reference
Holds the sample at the output, if the Gate input is pseudo-false (around 0)

Sample & Hold


This operator is used to fixate the output sample values from the moment the Gate input becomes pseudo-boolean False (around 0). If the Gate is pseudo-boolean True (around 1) then the signals flow through unchanged.

Please note that the Gate input is a state input and not a trigger input.

You may connect any type of signal to the Any input, but the Gate input must be a floating point (Real) value signal.

Operator ports

Input Any: Any sample type. The connection is not limited to one type of signal.

Input Gate: Floating point values

Output [Any]: Any sample type. The connection is not limited to one type of signal.


Find more information about changing properties here: link

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

Every object has the Caption property. This property is very important, because it is the name by which Polybench recognizes this object.
It is allowed to give multiple objects the same name, as long as the objects are of the same type. In that case, a reference to this caption includes all the objects with the same caption.
In Polybench, every object can be addressed by an Address specifier, which starts with the dollar sign, for example: $My Page.My Object. 'My Page' would be the Caption of a page, and 'My Object' the Caption of an object on that page.

type: See description
Optional documentation of this object.

It is good practice to write in short notes why you have used this object, and why its properties are set the way they are set. If this object is an operator, the Documentation text is displayed below the operator symbol.


The Gate input can function as channel-to-channel, or as scalar gate. In the first case, the number of channels of Gate and Any must be equal. The Sample and Hold then functions for all related channels separately (so, the first Gate channel triggers the first Any channel, the second Gate channel the second Any channel, etc.). In the second case, the Gate input should have only one channel connected. That channel triggers all channels in Any at the same time.

The Sample and Hold will issue a warning if the input configurations are not correct.

The Gate input may be connected to a feedback loop.

Read more about pseudo-boolean states here: link.