You use the Environment tab to define environment information for your graphics pages. You can add, remove, or edit page environment variables for a graphics page, template, or Super Genie.
For example, you can design your loop pages to expand when clicked (a Tune >> button) to show tuning parameters. You can use the environment variable to define the size of the expanded window. The DspGetEnv() function would be used as part of the Cicode for the button that expands the window. This means that the Cicode used to expand the window can be generic: you can use the same Cicode each time.
From CitectSCADA v7.20, environment variables are propagated from Super Genie templates to Super Genie pages automatically. Refer to Environment variables in 7.20 for more information.
Variables
The environment variables to be added to the page.
When the page is opened during runtime, these variables are
created. Their values can then be read using the DspGetEnv()
function. When the page is closed,
the environment variable memory is freed (discarded). For the
example above, you would add one variable to define the width of
the page, and another to define the height.
To add an environment variable, click Add. To edit an existing environment variable, select it, and click Edit. (If you click Add or Edit, a small dialog appears, containing two fields, one for the property and one for its value.) To remove an environment variable, select it, and click Remove.
See Also