Polybench® Reference
Constant value; Outputs one channel with one sample of a user-set value (K)

K

Overview

Use this operator if a constant value should be set anywhere in a measurement configuration.

Operator ports

Output K: Floating point values
This is a Constant output, which does not output a signal, but a single value. A constant output does not have a sample frequency and is therefore recognized by Polybench to be a constant. Many calculations can be performed on constants as well as signals (or a combination of both). If an operator performs a calculation on constants only, it becomes a constant operator itself.

Constants and any other data source are allowed to be mixed without synchronization ("Synchronizer").

In a schematic, connectors that are connected to constant outputs are always colored black, while connections from other data sources may be colored differently.

Properties

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

Value
type: See description
The constant value at the output channel.


Unit
type: See description
The unit of the constant value. This value is optional and per default empty.


Caption
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".

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

Variable Parameters

Find more information about Variable Parameters here: "Variable Parameters"

Value
type: See description
The constant value at the output channel.

Details

The Constant does not produce a signal. So if you connect a constant to a viewer directly, no signal will appear. In order to convert the constant value to a constant signal, use the Clocked Constant ("Clocked Constant"). For more information about signal types, see "Timing properties of samples in a stream".

It is possible to change the constant value from within your application. The Constant has a Variable Parameter, which can be changed by using a SET_PARAMETER Action ("SET_PARAMETER").

The Value of the Constant is displayed below the Constant symbol.


Example of use of the Constant. Each signal channel is multiplied by a different value. Also valid is to connect one constant to the multiplier, so that all three channels are multiplied by the same value.