Syntax of a Mimic Parameter Tag
When configuring Mimics that have parameters, you can include references to the Mimic's parameters in your expressions.
A Mimic parameter tag has the following syntax:
"Parameter:<Parameter Name>"
"Parameter:<Group>.<Parameter Name>"
Where:
<Group>
is the name of the parameter group that contains the Mimic parameter. This is not required if the Mimic parameter is not in a group. Each hierarchical level in the groups have to be separated by a period.
<Parameter Name>
is the name of the Mimic parameter that you are referencing.
In each case, do not enter the angle brackets < >.
Example:
A Mimic named 'Title 1' contains a text box. The text box contains the words 'Main Valve'. A parameter is created for the Mimic. The Mimic parameter is named 'AlarmState' and it is associated with the text box. On the Animations window for the text box, the following expression is used to animate the Pen.FillColour property of the text box:
IIF("Parameter:AlarmState"=0, RGB(0,255,0),RGB(255,0,0))
This expression sets the text box to display its contents in red or green depending on the AlarmState value of any database item that is associated with the Mimic parameter. If the item's alarm state value is 0 (normal), the text will be displayed in green. If the item's alarm state is 1, 2, 3, or 4, the text will be displayed in red.