Edit Object=>Placeholder-DialogΒΆ

This dialog box can be used to edit the placeholder text of the active page.

../../_images/EditPlaceholder-en.png
Text

The first column contains the placeholder name without the enclosing $-signs. The second column contains the placeholder text.

Comment

The cell name can contain a placeholder. A placeholder is text that begins with a dollar sign, followed by the text, followed by another dollar sign, e.g. $Operator$.

The placeholders can be edited using a special dialog box or the text can be loaded from a data file using the data browser or using the command Load Placeholder Text from File (Right click outside the page to open the page context menu.)

To load the data from a data file the text within the $ symbols must agree with text in the global attributes of the selected NC file. The placeholder text is case sensitive. Values will be converted into strings. If the NC attribute contains a vector, the elements will be separated by a comma followed by a blank.

To access attributes of a specific variable the variable name must be separated from the attribute name by a period. Example: $Torque.long_name$.

The placeholder text can be loaded from a data file using the data browser. See The Data Editor. Select the type Text: Load Placeholder Text.

See also: Text Placeholder.

Examples for Placeholders:

Placeholder

Description

$Operator$

Global NC file attribute Operator.

$Origin$

Global NC-File attribute Origin. This attribute contains usually the file name of the original data file.

$speed.units$

Attribute units of the speed channel.

$speed.1$

The first value of the speed channel.

$speed.-2$

The second last value of the speed channel.

$speed.i()$

The i-th value of the speed channel where i can be manually set by assigning to _g()._placeholder (for example _g()._placeholder = [. i = 3]; would give the 3rd value of the speed channel).

$speed.min()$

Minimum of channel speed.

$speed.mini()$

Index of Minimum of channel speed.

$speed.min_time()$

Time of Minimum of channel speed. To define a time channel, use Type = Time Channel as a channel attribute.

$speed.max()$

Maximum of channel speed.

$speed.maxi()$

Index of Maximum of channel speed.

$speed.max_time()$

Time of Maximum of channel speed. To define a time channel, use Type = Time Channel as a channel attribute.

$speed.std()$

Standard deviation of channel speed.

$speed.mean()$

Mean value of channel speed.

$File1:Origin$

Global attribute Origin from the first data file.

$(2)Origin$

The order in which the placeholders are listed in the dialog box can be givin by a number in parenthesis (immediatly after the dollar sign).

$File3:speed.1; %.2lf$

Displays the first value of the speed channel of the third data file with two decimal places. The format specifiers are given in printf.

If the document contains multiple pages you can use Diagram=>More Diagram Functions=>Global Placeholders to select placeholders that should show the same text in all pages.

id-1113067