Graphics Builder > Configure Graphics Pages > Edit the Properties for a Page > Page Properties - Environment

Page Properties - Environment

You use the Environment tab to define environment information for your graphics pages. You can add, remove, or edit page environment variableA read-only variable associated with a particular page. When you make the association, you name the variable, and assign it a value. When the page is opened during runtime, Citect SCADA creates the variable. Its value can then be read. When the page is closed, the environment variable memory is freed (discarded).s 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.

Environment variables are propagated from Super Genie templates to Super Genie pages automatically.

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.

Note: When using Cicode, be aware that page variables are case sensitive.

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

Published June 2018