You are here: Core Reference > Coding > Scripting > TopMimic Functions

TopMimic Functions

The TopMimic object has the same functions as the Mimic object. The only difference is that the TopMimic object represents the top-level Mimic that is on display, whereas the Mimic object represents the Mimic that contains the script that is running.

The TopMimic functions that you can use are:

These functions work in a similar way to the corresponding Mimic object functions, only they apply to the top-level Mimic rather than the Mimic that contains the script. For example, TopMimic.Close allows you to close the top-level Mimic that is on display, whereas Mimic.Close allows you to close the Mimic that contains the script that is running. For more information on the purpose of each function, see Mimic Functions.

If the top-level Mimic is the Mimic that contains the script that is running, using the TopMimic functions will produce the same results as using the Mimic functions (as the top-level Mimic and the Mimic that contains the script are one and the same).

Each TopMimic function references a TopMimic object. So, in your script, you need to use the following format to reference a TopMimic function:

TopMimic.<function name>


ClearSCADA 2015 R2