Pen Options for Trends

A pen is an object that plots values on a chart in a TrendWorX64 viewer; it is the connection between the data source and your trend display. A pen writes the data point as well as the connection properties between data points. You can have any number of pens of the same and differing styles that plot together on a chart. A chart's pens can display trend data for the following types of tags: OPC UA (Unified Architecture), OPC DA (real-time data), and OPC HDA (historical data).

 

Runtime users can manipulate pens during runtime if the chart has a Legend that includes certain options. For example, if the legend includes the Visibility field, runtime users can show and hide individual pens in the chart. Runtime users can also isolate a pen to its own chart during runtime. For more about the legend, refer to Legend Options for Trend Charts. For more about what runtime users can do, refer to Runtime Operations in TrendWorX.

 

To customize a pen, use the TrendWorX64 Viewer Configurator. Select the pen you wish to customize in the tree navigation area on the left. The pen's configurator has the following tabs:

The Advanced tab contains the pen's properties; you can also set many of these properties using the other four tabs. You can even select multiple pens that are writing to different plots and change each of their properties simultaneously using the Advanced tab.

 

Warning. Not all TrendWorX64 features are supported in Microsoft Silverlight. If you are saving Silverlight files, refer to Silverlight Files in GENESIS64 for more information.

General Tab

On the General Tab (shown below), there are two sections that map to property settings on the pen's Advanced tab. The sections are: Data and Appearance.

 

The Pen's General Tab

 

Data:

Warning: When adding a Historical Pen, the tag syntax must be absolutely correct; in particular, these tags are case-sensitive. Otherwise you may receive error messages such as 'BadNoMatch' and/or 'BadUnexpectedError'. A tag with some upper-case characters and a tag with all lower-case characters are considered two different tags.

More about standard numeric formats can be found at http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx

 

More about custom numeric formats can be found at http://msdn.microsoft.com/en-us/library/0c899ak8.aspx

Appearance
[Note: Some appearance options may not have relevance for all types of plots.]

Sample Style

Bad/Uncertain Quality

Ranges Tab

The Pen's Ranges Tab

 

Range sets the scale of the Y-axis

Configuration Axis Dialog Box for a Pen

Alarm Tab

On the pen's Alarm tab (shown below), you can optionally set boundaries for the values that the pen writes. (Note that you can choose to display the numerical values of these limits in the chart's legend by using the chart's General tab.) You can click a field's ellipsis button to open the Data Browser where you can select an alias or tag that sets the limit.

The Pen's Alarm Tab

 

Note that you can use the Pen's Advanced tab to further define the pen's capabilities. For example, while working with historical data, it is possible to add operator comments to the logged data at designated points in time. You can make such operator comments visible along with the data itself, to show an important information related to the data behavior in the particular moment. To do this, go to the pen's Advanced tab and set the pen's Show Operator Comment property to True. For information about the pen's Advanced tab, go to the topic called Advanced Display Options.

 

Ideal Pen Tab

On the pen's Ideal Pen tab (shown below), you can (once the check box has been clicked) set a Start Date and Start Time for the Ideal Pen. The Ideal Pen is a very powerful tool that allows you to compare data from the same data source over two different periods of time simultaneously.

 

The Pen's Ideal Pen Tab

 

You can also click on the Select Operator Comment button, which opens the Select Operator Comment/Batch window shown below.

 

Select Operator Comment/Batch Window

 

This window allows you to search for operator comments within a certain timeframe. Use the drop-down menus to set a "From" and "To" time period, then click on the Find button. Any comments meeting your date range criteria will be shown in the History field. Selected Operator Comments will appear in the field to the right. Click OK to return to the Ideal Pen tab.

Pens as Pick Actions in TrendWorX Viewer

The following pick action has been added for Pens: Add Pen

When selected the following properties will become available:

 

Name: The name of the TrendViewer (i.e. the name of the object in GWX64).

Tab: The name (or index) of the tab in the TrendViewer .

Chart: The name (or index) of the chart in the TrendViewer .

Pen Type: The type of pen, e.g. Real time Pen, Historical Pen.

Pen Name: The name of a pen, both static strings and dynamic string (GA, LA, OPC tags).

Period: The period of the trend window specified as a time period; allows you to specify days, hours, minutes, seconds.

 

See Also:

Chart Options for Trends

Plot Options for Trend Charts

Working With Trends