2 configuring the dynamic attribute settings, Figure 4-12. expressions window, Figure 4-12 – Micromod Micro-PWC: 53PW6000 MicroPWC Configuration Guide User Manual

Page 146

Advertising
background image

Micro-PWC CONFIGURATION GUIDE

126 Grafx Editor

Click on an expression in the list to cause that expression to be displayed in the Expression Dynamics win-
dow. To close the Expressions window, click on the OK button.

An expression is considered "active" when it evaluates to true and has settings for True, or when it evalu-
ates to false and has settings for False. While expressions can be configured so that only one expression
is active at a time, it is also possible to configure expressions so that this is not the case; for example:

1.

An object has more than one "active" expression. The expressions are evaluated, and their
settings applied, in the order in which they were defined by the user. This means that the
effects of an expression with a low number (e.g., 1) may be overridden by an expression with
a higher number (e.g., 10).

2.

An object has no "active" expressions. If none of the expressions with True settings are true,
and none of the expressions with False settings are false, then the object is not changed.

4.3.1.2 Configuring the Dynamic Attribute Settings

Below the Expression entry box are two rows of attribute setting boxes. The first row is labelled True; a text
description and toggle button are located at the top of each attribute setting box. Assignments configured
here control the appearance of the selected object or submodel when the expression in the Expression
entry box evaluates to True (1).

Below this section of the Expression Dynamics window is a second row of attribute setting boxes, identical
to the first, except these are labelled False. These assignments control the appearance of the selected
item when the expression in the Expression entry box evaluates to False (0).

A value or variable can be entered in each of the attribute setting boxes which contains a text entry box. If
a variable is entered in such an attribute setting box, and the object is saved as a submodel, that variable
can later be used via the Configure Submodel pop-up menu item to assign the attribute independently, for
each instance of the submodel. This is particularly useful when a submodel is instanced more than once
when creating a new submodel. For example, if a submodel called FP_DYbargraph contains a variable
called TagAtom, and FP_DYbargraph is instanced twice on a new submodel, this variable could be
assigned the variable name TagAtom1 in the first instance, and TagAtom2 in the second instance.

Some attribute setting boxes contain a button instead of a text entry box. Click on this button to configure
the attribute setting; in some attribute setting boxes, the button toggles between two states (e.g., Yes and
No), while in others the button provides access to additional configuration windows.

Click in the text/toggle button portion or in the button/text entry portion of the attribute setting box to select
the attribute for configuration; the toggle button will turn yellow, indicating that the attribute has been

Figure 4-12. Expressions Window

Note

It is not necessary to configure both True and False attribute
settings for an expression.

Advertising