Dynagraph Properties

Property icon The Dynagraph supports the following properties, which are available via the Properties pane and the Canvas script editor. Click next to any property name in the Properties pane to see a short description for the selected property.

See Accessing Screen Objects for more information about how to view control objects in script in the Canvas application.

Note: The Dynagraph control shares the same properties as the Object Viewer control, which is where a Canvas object is viewed in design mode. The Object Viewer's properties are listed in the Properties pane in an Object Viewer control and have the same properties, events, and methods as the Dynagraph control.

Categorizing, Sorting, and Finding Properties

You can click Categorize (Categorize), click Alphabetize (Alphabetical within Category) or click Search (Search) within the properties using the features located immediately above the properties list. The search box is useful to help locate a property when an object contains many properties. For clarity, when you enter a search term, items matching your entry string remain displayed and non-matching items are temporarily hidden. Clear the search box to display the full properties list again.

You can expand and collapse each property category by clicking Down arrow or Up arrow next to the group name or simply clicking anywhere in the category heading.

Dynagraph Control Properties

The following table describes the property names visible in the Properties pane user interface (UI) and the corresponding script property name.

UI Property Script Property Description
Name Type Style

Name

ControlName

The Name property specifies the unique identifier for this control. Valid characters are A-Z, 0-9, and underscore (_). Special characters and spaces are not permitted. Names cannot start with a number; an underscore will be prefixed if the control name starts with a number. The default value is the object name and the numeric instance. The control's Name is also displayed on the Controls view of the Screen pane.

Type

ControlType

The read-only Type property displays the type for the control: Button, Chart, CygNet Grid, Edit Box, Object Container, Search Box, Tag Chooser, etc. … The control's Type is also displayed on the Controls view of the Screen pane.

Style

 

Not supported by TWC The Style property defines the style sheet applied to an object on a screen. A style sheet consists of a predetermined list of properties and property values configured for a particular control type.

  • Click Down arrow to reveal a drop-down menu of predetermined styles configured for the selected control.
  • Select a desired style and its properties will be applied to the control.
  • Alternately, you can create a new style based on other property values configured for the control.
  • Or you can select <None> to remove subscription to any style.

Styles are created in two ways:

  • In the control's Properties pane. Click Add a new style (Add a new style based on this control) next to the Style property, after you have configured property values in the Properties pane. See Add a new style based on a control for more information.
  • In the Canvas Settings in the Backstage view. The default style for any control is configured in the Backstage view. See Manage style sheets in the Backstage view for more information.

Tip: You can also change a control's Style on the Controls view of the Screen pane.

LocationBack to top

Height

Height

The Height property specifies the height of the control (or screen).

Tip: You can also change the height of a control using the Settings pane (click on the Settings icon (Settings) to the right of the control in design mode) or on the Controls view of the Screen pane.

Horizontal resize mode

HorizontalResizeMode

The Horizontal resize mode property specifies whether and how the control dynamically moves or resizes horizontally when the screen is resized in run mode. Options include:

  • None — No resizing occurs.
  • Shift — The object will shift horizontally.
  • Expand — The object will expand or shrink horizontally the same number of pixels as the screen.
  • Proportional — The object expands or shrinks proportionally to the screen.

The default value is None.

Layer

Layer

Not supported by TWC The Layer property specifies the name of the layer to which this object is assigned. Layers can be used to show, hide, and edit multiple controls on one layer without affecting controls on another layer.

  • Type the name of the layer into the Layer field (the name can be a previously created layer or a new layer).
  • All layers are listed on the Layers pane, where you can manage the layers for the screen in design mode and run mode.

Tip: You can also edit a control's Layer on the Controls view of the Screen pane.

Note: Layer visibility can be controlled at runtime via the AddLayer, HideLayer, SetLayerVisibility, and ShowLayer methods on the Screen object.

Lock

IsLocked

Not supported by TWC The Lock property indicates whether the control is locked to the current position. A locked control cannot be moved via click and drag, or nudged with the arrow keys, or resized.

Tip: You can also toggle the lock setting of a control using the Settings pane (click on the Settings icon (Settings) to the right of the control in design mode).

Vertical resize mode

VerticalResizeMode

The Vertical resize mode property specifies whether and how the control dynamically moves or resizes vertically when the screen is resized in run mode. Options include:

  • None — No resizing occurs.
  • Shift — The object will shift vertically.
  • Expand — The object will expand or shrink vertically the same number of pixels as the screen.
  • Proportional — The object expands or shrinks proportionally to the screen.

The default value is None.

Visible

IsVisible

Not supported by TWC The Visible check box indicates whether the control is visible in run mode.

Tip: You can also change a control's Visible setting on the Controls view of the Screen pane.

Width

Width

The Width property specifies the width of the control (or screen).

Tip: You can also change the width of a control using the Settings pane (click on the Settings icon (Settings) to the right of the control in design mode) or on the Controls view of the Screen pane.

X

X

The X property specifies the location of the control along the horizontal axis. Use the up, down, left, and right arrow keys to nudge a control by 1 pixel. Arrow moves a control by 1 pixel. Ctrl+Arrow moves a control by 10 pixels. Ctrl+Shift+Arrow moves a control by 100 pixels.

Tip: You can also change the location of the control using the Settings pane; click on the Settings icon (Settings) to the right of the control in design mode.

Y

Y

The Y property specifies the location of the control along the vertical axis. Use the up, down, left, and right arrow keys to nudge a control by 1 pixel. Arrow moves a control by 1 pixel. Ctrl+Arrow moves a control by 10 pixels. Ctrl+Shift+Arrow moves a control by 100 pixels.

Tip: You can also change the location of the control using the Settings pane; click on the Settings icon (Settings) to the right of the control in design mode.

Z index

ZIndex

The Z index property is used to determine the order in which controls are layered on top of each other. Controls with higher values will draw on top of those with lower values. The newest control added to a screen will always have the highest value and will be the top layer. Two or more controls can be on the same index (layer).

Tip: You can also change the Z index of a control using the Settings pane (click on the Settings icon (Settings) to the right of the control in design mode) or on the Controls view of the Screen pane.

ScriptBack to top

Include in script

Scripting is not supported by TWC The Include in script check box indicates that the control will appear in the objects collection of the screen (if scripting is enabled). To optimize performance, best practice dictates that you only include the controls you need to manipulate via script. Other controls should be excluded. When you add an event to a control, it will be automatically added to script and the Include in script property (and the In Script check box on the Controls view) will be set to True.

Tip: You can also change the Include in Script setting on the Controls view of the Screen pane.

Dynagraph

Card view

CardView

The Card view property determines which dynagraph card types to display. Options include:

  • Surface — Limit the card view to show only surface card(s).

  • Downhole — Limit the card view to show only downhole card(s).

  • Both — Show both surface and downhole cards. Intuitively, the surface card displays above the downhole card.

The default value is Surface.

Color configuration

DynagraphColorConfiguration

The Color configuration drop-down contains all options required to specify the color properties of the control. Click Down arrow to reveal a set of color options where you can specify the source of the color to be used for the elements of the control. The Color configuration box consists of the following options.

Color config >

Background color

DynagraphColorConfiguration.BackgroundSource

DynagraphColorConfiguration.BackgroundSelfColor

The Background color property specifies the color used for the background of the control.

The color can be sourced from one of two options provided in the Source drop-down menu:

  1. The color will automatically follow the selected client theme regardless of the underlying color palette (by selecting Auto). The default value is Auto.
  2. The color can be customized (by selecting <Self>).

Options include:

For each color property select the Source and Color:

  • Source — Click Down arrow to reveal two options:
    • Auto — The color will automatically follow the selected client theme regardless of the underlying color palette (by selecting Auto). Where applicable, color-related properties will default to this configuration, allowing them to automatically follow the theme of the current client rather than fixing them to the one used when the screen was created. By using Auto for the color configuration, a screen developer can work in their preferred theme without affecting the presentation of the final screen when displayed by the user—avoiding display problems such as white text over a very light background, etc.

      Note:  Not supported by TWC  Auto is not supported as a color source in TWC screens. If a property specifies Auto for color configuration, the screen will use the <Self> color that is specified in the Canvas file during the publishing process. See Color on TWC Screens.

    • Self — Select Self to explicitly configure the color. When Self is selected a Color field is automatically displayed beneath the Source field and must be configured.
  • Color — Only displays if the Source is Self. Click Down arrow to customize the color using the color picker.

Note: You can override the default point state colors for this element by creating a custom color palette. See Configuring Color Palettes and Color palette for a screen or object for more information. Not supported by TWC

Color config >

Foreground color

DynagraphColorConfiguration.TextColorSource

DynagraphColorConfiguration.TextSelfColor

The Foreground color property specifies the color used for some of the foreground elements of the Dynagraph control. For the Dynagraph this includes the axis legends and labels. Foreground color configuration does not include the axis lines, tic marks, or grid lines. Nor does it include the card plot lines, POC point, dotted lines (max load, mean load, stroke length), which are auto-colored.

The color can be sourced from one of two options provided in the Source drop-down menu:

  1. The color will automatically follow the selected client theme regardless of the underlying color palette (by selecting Auto). The default value is Auto.
  2. The color can be customized (by selecting <Self>).

Options include:

For each color property select the Source and Color:

  • Source — Click Down arrow to reveal two options:
    • Auto — The color will automatically follow the selected client theme regardless of the underlying color palette (by selecting Auto). Where applicable, color-related properties will default to this configuration, allowing them to automatically follow the theme of the current client rather than fixing them to the one used when the screen was created. By using Auto for the color configuration, a screen developer can work in their preferred theme without affecting the presentation of the final screen when displayed by the user—avoiding display problems such as white text over a very light background, etc.

      Note:  Not supported by TWC  Auto is not supported as a color source in TWC screens. If a property specifies Auto for color configuration, the screen will use the <Self> color that is specified in the Canvas file during the publishing process. See Color on TWC Screens.

    • <Self> — Select <Self> to explicitly configure the color. When <Self> is selected a Color field is automatically displayed beneath the Source field and must be configured.
  • Color — Only displays if the Source is <Self>. Click Down arrow to customize the color using the color picker.

Note: You can override the default point state colors for this element by creating a custom color palette. See Configuring Color Palettes and Color palette for a screen or object for more information. Not supported by TWC

CygNet connection

CygNetConfiguration

The CygNet connection property is used to configure the facility and SiteService associated with this control or screen. Two selection modes are available: a) by Facility tag or b) by SiteService / Facility. This split configuration allows for the inheritance of these properties from other controls, or the specific configuration of the SiteService or the facility, while dynamically changing the other. This use case may be rare; therefore, the Facility tag option is the default.

Click Down arrow to reveal a drop-down area where you can configure the Selection mode, source SiteService, and source Facility. Each option is described below.

CygNet conn > Selection mode

CygNetConfiguration.SelectionMode

The Selection mode property is used to determine how the control will receive CygNet information from other controls or from itself. Two options are available; click the desired radio button:

  • Facility tag — The Facility tag selector consists of a Source chooser and Resolve to a relative facility check box. If the Source is <Self> a Facility tag selector and relative facility options are also displayed. Facility tag is the default option.
  • SiteService / Facility — The SiteService / Facility selector consists of Source and SiteService and facility choosers.

Sending and receiving facility tags

Some controls on the same screen allow for the sending of facility information from one control to another.

  1. On the sending control configure the Facility sender mode property to send facility tag information to another control on the same screen.
  2. On the receiving control configure the Selection mode property (in either CygNet connection or Point configuration section) to Facility tag and select the Facility Source to the sending control.
  3. On the receiving control configure a display tag that associates to a facility property, e.g., %FacilityTag%.

Example

Add a control to a screen (e.g., a Tag Chooser or Grid) and configure it as a facility sender to send a facility to the screen. Add another control to the screen (e.g., a Text Tool or Donut) and configure it to receive the facility from the screen. In this scenario the Tag Chooser or Grid will send a facility to the screen and the screen will then send the facility to a Text Tool or the Donut.

CygNet conn > Facility tag

CygNet conn > Facility

CygNetConfiguration.Facility

CygNetConfiguration.FacilityTag

CygNetConfiguration.SourceFacilityTag

FacilitySender

The Facility tag or Facility property is where you specify the source of the facility for the control (or screen) to use. The source for the facility can be explicitly configured for this control or it can be received from another control on the same screen, or from the screen, or from another screen. Click Down arrow to reveal the Facility tag or Facility selector. Options include:

  • Source — Options include <Self>, Screen (default), or a list of Sender controls.
    • <Self> — Select <Self> to explicitly configure the facility for this control. A Facility tag or Facility selector is displayed, depending on the Selection mode:
      • Facility tag — The Facility tag property specifies the full facility tag identifier for which the control (or screen) is to display data. Click Open dialog box to select a facility using the Select Facility Tag dialog box.
      • Facility — The Facility property specifies the facility for which the control (or screen) is to display data. Click Open dialog box to select a facility using the Select Facility dialog box.
    • Screen — Select Screen to inherit the facility from the screen for this control. By default, the sender is the Screen control if no other senders have been configured. Once Screen is selected Inherited from Screen will display for the Facility property.
    • Sender — A list of sender controls that have been configured with a facility will be displayed. Select the name of the control that will send its facility to this control. By default, the sender is the Screen control if no other senders have been configured. Once a sender control has been specified its name will display in the Source field.
  • Resolve to a relative facility — The Resolve to a relative facility check box redirects the source of the facility to a relative facility, overriding the configured source facility. Once selected a list of configured Relative links is displayed. See Using Relative Facilities in Canvas for more information about configuring and scripting relative facility links.
    • Relative link — The Relative link property specifies a list of all available relative facility paths. Click Down arrow to reveal a drop-down menu of all available relative facility definitions (relative links). Select a link from the list. If an order-in-type attribute is specified for the selected link, the Order in type field will display.
    • Order in type — The Order in type property specifies the attribute value used to represent the order in type (facility ordinal) if the relative facility definition is configured for one. It is possible to have multiple relative facility definition sets with the same definition name. In this case, if the specified Relative link is configured for ordinalization, then you need to configure the attribute value in the box.

CygNet conn > SiteService

CygNetConfiguration.SiteService

GetCygNetSiteServiceSenders

GetCygNetSiteServiceSenders.Method

GetCygNetSiteServiceSenders.Target

SiteServiceSender

The SiteService property is where you specify the source of the SiteService for the control (or screen) to use. The source for the SiteService can be explicitly configured for this control or it can be received from another control on the same screen, or from the screen, or from another screen. Click Down arrow to reveal the SiteService selector. Options include:

  • Source — Options include <Self> or Screen (default):
    • <Self> — Select <Self> to explicitly configure the SiteService for this control or screen element. A SiteService selector is displayed:
      • SiteService — The SiteService property specifies the SiteService for which the control (or screen or screen element) is to display data. Click Open dialog box to select a service using the Select Service dialog box.
    • Screen — Select Screen to receive the SiteService from the screen for this control or screen element. By default, the sender is the Screen control if no other senders have been configured.

Initial cards to show

CanvasDynagraphCardType

CanvasDynagraphCardType.IsAlarmCardSelected

CanvasDynagraphCardType.IsCurrentCardSelected

CanvasDynagraphCardType.IsFailureCardSelected

CanvasDynagraphCardType.IsIdealCardSelected

CanvasDynagraphCardType.IsPumpupCardSelected

CanvasDynagraphCardType.IsReferenceCardSelected

CanvasDynagraphCardType.IsShutdownCardSelected

The Initial cards to show property determines the initial cards to display for the device. Different types of cards can be polled from the device, though not all devices support all card types. Each card displays one complete stroke in a load versus position graph. Load is displayed in pounds, and surface position is displayed in inches.

Click the desired check box(es) to display the available card(s) at the startup of the dynagraph screen. If other cards are also selected to show initially, the cards overlay. The available card types include:

  • Alarm card — An alarm card from the associated remote device, if one is available. An alarm card is created whenever an alarm condition is met in a field device. Such a condition is typically treated as less severe than a fault, which creates a failure card.

  • Current card — A current card describes the most recent stroke stored in associated remote device. This card type is used for analyzing real-time pump information. Typical devices maintain five current cards in their registers, although some hold only one. Current card information is displayed by default in a surface position plot. It is also possible to display it as a downhole card, or show both the surface and downhole plots at once. To display a downhole card, be sure that the DDS is configured to retrieve downhole information from the device.

  • Failure card — A failure card from the associated remote device, if one is available. A failure card is created whenever a fault condition is met in a field device. Such a condition is typically treated as more severe than an alarm, which creates an alarm card.

  • Ideal card — A card returned from an external system. This card calculates an ideal rod pump stroke card based on a set of configuration items. it can be used as a way to compare actual and ideal strokes, and to adjust current configuration to a more ideal state.

  • Pumpup card — A pumpup card is generated when the pump fully starts again after having been shut down.

  • Reference card — A quick reference or snapshot of a dynagraph card, or any type of card from the associated remote device, if one is available, that is stored for reference in the CygNet system, and sometimes in the device itself.

  • Shutdown card— A shutdown card, or pumpoff card, is generated when the pump is turned off, usually to wait for the reservoir to fill. Most devices store the previous five shutdown cards in two card sets.

Number of cards

NumberOfCards

The Number of cards property determines the maximum number of cards to be displayed on a control for each card type. Select a number between 1 and 5.

ValueBack to top

Show context menu

ShowContextMenu

The Show context menu check box indicates whether a right-click context menu will be available or suppressed in run mode. Right-click anywhere in the Dynagraph to access the control’s context menu. The Dynagraph context menu allows the following operations:

Menu Item Description Canvas Native view
Context Menu
CygNet TWC web view
Context Menu

Get from device

Dynagraph context menu — Get from device

Get from device

Dynagraph context menu — Get from device

Get from device

Pumpoff config

Gets pumpoff configuration data from the remote device.

Fluid fill setpoint

Gets the fluid fill setpoint from the remote device.

Current card

Gets the current dynagraph card from the remote device.

Shutdown card

Gets the shutdown card from the remote device.

Pumpup card

Gets the pumpup card from the remote device.

Reference card

Gets a reference card for the remote device.

Ideal card

Gets an ideal card for the remote device.

Edit data

Dynagraph context menu — Edit data

Edit data

Dynagraph context menu — Edit data

Edit data

Pumpoff config

Opens the Pumpoff Configuration dialog box to edit values and send back to the remote device.

Fluid fill setpoint

Opens the Gross Fluid Calculation Settings dialog box to edit fluid fill setpoint values and send back to the remote device.

See Using a Dynagraph in Run Mode for more information.

GenericBack to top

String

String

Not supported by TWC The String property specifies a generic string property that can be used when scripting this control. Type a string and reference it in your script as necessary.

Yes/No

YesNo

Not supported by TWC The Yes/No property specifies a generic Boolean yes/no property that can be used when scripting this control. Click the check box to enable the property and reference it in your script as necessary.