Using a Script to Define and Display a ‘Custom’ Ad Hoc Trend
ClearSCADA supports several types of Trend (see Pre-Configured Trends and Ad Hoc Trends in the ClearSCADA Guide to Trends). Many types of Trend are configured using a series of windows in ViewX. However, ‘custom’ ad hoc Trends are configured using TrendSpec, ClearSCADA’s proprietary specification language.
To allow users to display a ‘custom’ ad hoc Trend, you need to add a Hyperlink or Script pick action to the relevant Mimic (see Creating a Hyperlink to a Trend or X-Y Plot in the ClearSCADA Guide to Mimics). To define the Trend’s properties, you need to incorporate the TrendSpec definition into the Trend’s hyperlink URL or script subroutine.
Refer to the relevant sections in this ClearSCADA Guide to Scripting for information on coding Mimic scripts.
For information on defining a ‘custom’ ad hoc Trend’s properties using TrendSpec, see Using TrendSpec to Produce Ad Hoc Trends in the ClearSCADA Guide to Trends.
For a series of worked examples, including several that demonstrate how TrendSpec definitions might be incorporated into Mimic scripts, see Example Configuration in the ClearSCADA Guide to Trends.