Polybench® Reference
Captures a constant value and issues an action with the constant value if the value changes.

Constant To Action

Overview

This operator performs an Action (link) as soon as a constant floating point value changes at the input. The input value is captured and used as Value for the action.
Like the Capture Action operator (link), this operator provides an interface from signal processing to program control.

Operator ports

Input K: Floating point values

Properties

Find more information about changing properties here: link

Action
type: Select from the list
Select the code of the Action that is performed when the constant value at the input changes.
Select one of those presets:


Value
type: See description [this value cannot be changed]
The value of the Action is the new constant value at the input of the operator.


Address
type: Address, starts with '$' sign (see link)
Fill in the address of the object that should receive the Action.

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

NumberFormat
type: See description
The way the captured value is represented as value in the specified Action, e.g.: '.1' for one digit and a decimal point, or '>,3' for a value with at most three digits and a decimal comma.

For more information about Number Format codes, please refer to link.

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

Documentation
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.

Details

The connection to the input of this operator must be of type Constant, must have only one channel, and must be of floating point type. The operator warns if the input conditions are not met.