Polybench® Reference
Reads a variable or parameter and converts it to a constant numerical value at the output.

Variable To Constant


Converts the specified variable to a constant signal value at the output.
If the variable does not refer to a numerical value, then the result is 0. If the variable does not refer to a valid location, then the constant value is also 0.

You have to start the system before the variable is read by this operator (use the START action).

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 another 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 (link).

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


Find more information about changing properties here: link

type: Address, starts with '$' sign (see link)
Specify the address of a variable that should be copied to the constant value at the output.

You may type or paste the address, or you may press the small button on the right to open the Address Searcher dialog (link)

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

type: See description
The name of the channel that contains this constant value.

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.

Variable Parameters

Find more information about Variable Parameters here: link

type: See description
Specify the address of a variable that should be compared to CompareValue


Please notice that it may take some time before a changed variable will result in a new constant value at the output. This is because the Variable to Constant operator polls the variable at a rather slow interval rate. In the worst case the update might take a couple of 100 milliseconds.