CimEdit Variables
About this task
Variables becomes a particularly powerful tool when you use a variable in linked objects.
A variable ID's chameleon-like functionality behaves as follows:
Procedure
-
A screen designer enters text to identify a Variable ID (on the Variables tab) in CimEdit.
The text may represent any of several types of values.
-
Any of several options can assign a value to the variable.
Options include:
- Scripts, which can include variable IDs to which values are assigned.
- Values assigned by a user during runtime.
- Values assigned by a screen designer while configuring the screen.
Values that a variable ID can represent include a:
- Full Point ID
- Partial Point ID
- Text string in an expression.
- CimView substitutes the text into the appropriate expression.
-
CimView evaluates the expression.
Example of Variable Behavior
Step 1 CimView substitutes specified values for the Variable ID's text. Variable ID Expression {myvar} * 2 tank{myvar}_level * 2 {myvar} Step 2 CimView evaluates the substituted expression. Resulting Expression tank1_level * 2 tank1_level * 2 tank1_level * 2