Dependency View (Dependency Graph)

Toolbar

Element

Description

Analyze Code

Click this button to start the analysis process of the application this Dependency View belongs to. If analysis has already been started and state of analysis is up-to-date, this button is disabled.

Select Nodes / Find and Select (binoculars icon)

After code analysis run, click this button to search for objects that are available in your Dependency View, and on which you want to set the focus. After confirming with OK, the selected objects have the focus in your Dependency View, and are highlighted.

Mouse Pointer

Click this button to switch from move mode to select mode.

Select and Add

After code analysis run, click this button to define the Select Scope and the Select Query.

The following Scopes are available:

  • Project + Libraries

    Expected results are the objects from Application, from POU space, and from the libraries referenced by the Application.

    If the devices are considered in the analysis, they are also part of the scope. For this, the option Consider Devices in the Configuration tab of the Code Analysis Manager must be activated. Refer to Configuration\Consider Devices.

    NOTE: This can result in a large number of objects.
  • Project

    Expected results are the objects from Application and from POU space.

    If the devices are considered in the analysis, they are also part of the scope. For this, the option Consider Devices in the Configuration tab of the Code Analysis Manager must be activated. Refer to Configuration\Consider Devices.

    Library objects are not reported in the results.

  • Application

    Expected results are the objects defined in Application only.

  • POU space

    Expected results are the objects defined in POU space only.

Refer to chapter Dependency (Select) Queries Tab.

Search and Add

After code analysis run, click this button to search for objects that should be added to your Dependency View.

  • Filter by …

    Click the button in front of Filter by … to define the scope of the objects that are displayed in the table of objects below. By default, all objects of your project are displayed.

    Enter plain text to search for objects. This search is not applied to the Type column.

  • Table of objects

    • The Name column provides a check box for each object.

      Activate a check box to add the respective object to your Dependency View.

    • Data Type

    • Type

    • FullName

  • All

    Click this button to select all objects.

  • None

    Click this button to deselect all objects.

  • OK

    Click this button to confirm your selection. The selected objects are added to your Dependency View.

  • Cancel

    Click this button to close the dialog box without adding objects to your Dependency View.

Clear

Click this button to remove all nodes from the displayed graph.

Export

Click this button to export the displayed graph as an image (*.jpg, *.png, *.bmp)

Layout

Select a predefined layout for the displayed graph. Several circular, force-directed, and tree layouts are available.

Apply

Click this button to rearrange the objects in the displayed graph according to the selected layout.

Zoom Control

With the zoom control in the lower right corner of the dependency graph window, you can modify the size and the position of the displayed graph.

Type

Description

Slider

Use the slider to zoom in or to zoom out.

Fill Bounds with Content

Click this button to enlarge the graph to the size of the dependency graph.

Center Content

Click this button to center the graph in the dependency graph.

Close

Click this button to close the zoom control. To reopen, click the icon in the lower right corner of the dependency graph.

To move the displayed content in the dependency graph window, click into the window > hold and move the mouse key.

Drag-and Drop Nodes to the Dependency Graph

You can also add nodes and subnodes to the dependency graph by drag-and-drop. Therefore drag a node from the Application tree and drop it to the dependency graph window.