K
Overview
Use this operator if a fixed constant value should be set anywhere in a measurement configuration.Operator ports
Output K: Floating point valuesThis 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.
Properties
Find more information about changing properties here: linkValue
type: See descriptionThe constant value at the output channel.
Unit
type: See descriptionThe unit of the constant value. This value is optional and per default empty.
Caption
type: Word or phraseThe 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.
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.
Documentation
type: See descriptionOptional 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: linkValue
type: See descriptionThe 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 (link).It is possible to change the constant value from withing your program. The Constant has a Variable Parameter, which can be changed by using a SET_PARAMETER Action (link).
If the Value property is changed, the Constant symbol displays that value below the symbol.