OPCHDA.NET Reference Manual
OPCHDA.NET Namespace
See Also  Inheritance Hierarchy Send Feedback
OpcHDAWrapperUA.Net4 Assembly : OPCHDA.NET Namespace

Glossary Item Box

Classes

 ClassDescription
ClassBrowseHDATree

This methods in this class are not defined in the OPC HDA specification.

The methods in this class simplify the browsing of the OPC server's address space. The full hierachical structure is browsed and the browse result is returned in a TreeNode array that can directly be used with a Windows TreeView. controls.

C# Sample:

OPCHDABrowser browser;
int[] err;
int rtc = OpcSrv.CreateBrowse( null, null, null, out browser, out err );
BrowseTree ItemTree = new BrowseTree( browser );
ItemTree.CreateTree(); // Browse server from root
treeviewItems.Nodes.AddRange( ItemTree.Root() );

VB Sample:

Dim browser As OPCHDABrowser
Dim err as Int32()
Dim rtc As Int32 = OpcSrv.CreateBrowse( Nothing,Nothing,Nothing, browser, err )
Dim ItemTree As BrowseTree = New BrowseTree( browser )
ItemTree.CreateTree() ' Browse server from root
treeviewItems.Nodes.AddRange(ItemTree.Root())

ClassImages Summary description for Resources.
ClassOPCHDABrowser Browses the HDA server with different filters
ClassOpcHDAServer The OpcHDAServer class contains the functions as defined in the OPC AE Server object
ClassShowHDABrowseTree The OPC server is browsed using the assigned OPCHDABrowser and the browse result is displayed in a TreeView control.
The TreeNode Tag property contains the fully qualified name of this node (item or branch). The methods isItem() and isBranch() can be used to determine the node type.
ClassShowHDABrowseTreeList The methods in this class simplify the browsing and display of the OPC server's address space. The OPC server is browsed and the branches are displayed in a Forms TreeView control. The items of the selected branch are displayed in a Forms ListView control. Node images are displayed as shown in the picture. The user can select other images or supply his own ImageList. The whole hierarchical tree structure is browsed and displayed. In default mode, the server is browsed as needed, initially the root level and each branch when it is selected for the first time. This results in a short latency, even for servers with a large address space. The BrowseTreeList object's BowseModeOneLevel property can be set to false, to force browsing all levels in the first call. The TreeNode Tag property contains the tlNodeInfo object. This contains the full path name of the branch and the ListViewItem array with all item in this branch. The ListViewItem Tag property contains the fully qualified Item ID. The methods isItem() and isBranch() can be used to determine the node type.
ClasstlNodeInfo TreeList node information for the link from the TreeNode branch to the TreeView with it's items. A reference to such an object is in the TreeNode Tag field.
The ListViewItem tag property contain the fully qualified ID of its item.

Enumerations

 EnumerationDescription
EnumerationUaTraceEvents Trace event selection flags.

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.