Polybench® Reference
An address is a formatted string that points to an object, a variable or a function in a Polybench project.

Address - how to address objects and variable parameters

Overview

Some components in your project may use information from other components in the project, for example the value of a certain variable parameter (link), or by referring to an entire object. This is supported by the Polybench addressing system, where formatted address texts can be constructed that point to a variable or an object.

Details

An address is a text string that always starts with a $ sign. It generally looks like this:

$[component locator].[parameter name in the component]

where [component locator] is the component name (this is commonly called Caption), with optionally specified the page on which the component resides, separated with a dot:

[component locator] = page name.component caption

You do not have to specify the page in the address per se! If you omit the page name, then all objects with the same name on any page will be addressed. If you address a specific Variable Parameter, then you always have to specify the object caption before it. For example:

$Design Page.Constant1.Value is correct.
$Constant1.Value is also correct.
$Value is also correct, but does not refer to the Value parameter of a constant! In this case, $Value is a user defined global variable (link).

Global variables are normally written with a $ sign at the end as well, for example:

$MyVariable1$
$Important value to remember$

On many places you are allowed to mix fixed text and variables. In that case the variable is always written in between two $ signs, like so:

The delay is $Design.Delay.DelayInTime$ seconds
My name is $computerusername$ and I rembered $Important value to remember$

If you need the $ sign to be displayed or to be contained inside a variable, then use a double-$ sign, like this:

It will cost you €$Euro Price$ in Germany, or $$$Dollar Prize$ in the US
This address is displayed as address: $$MyVariable1$$

On most places where you can enter an address, the Address Searcher dialog (link) is offered as a tool, so that it is easy to construct an address.
Alternatively you may copy the address of a Function or a Variable Parameter from the Functions dialog (link) or the Variable Parameters dialog (link) of the object that you want to refer to.