Variable To Constant
Overview
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 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: linkAddress
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)
Unit
type: See descriptionThe unit of the constant value. This value is optional and per default empty.
ChannelName
type: See descriptionThe name of the channel that contains this constant value.
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: linkAddress
type: See descriptionSpecify the address of a variable that should be compared to CompareValue