Main Content

browseNamespace

Graphically browse OPC HDA server namespace

Description

itmList = browseNamespace(hdaObj) opens a graphical namespace browser for the OPC HDA client object hdaObj. Use the graphical interface to construct a list of items and return a list of those fully qualified item IDs in itmList. You can use itmList to retrieve data for those items using readRaw, readProcessed, readAtTime, or readModified functions.

The namespace is retrieved from the server incrementally, as needed.

example

itmList = browseNamespace(hdaObj,itmListInit) lets you specify an initial list of item IDs to be augmented.

itmList = browseNamespace(hdaObj,itmListInit,true) loads the entire namespace into the dialog.

Examples

collapse all

Connect to the local Matrikon Simulation server and browse for items.

hdaObj = opchda('localhost','Matrikon.OPC.Simulation');
connect(hdaObj);
itmList = browseNamespace(HdaObj)

Browse the namespace manually, select the required items and click >> to move items into the Selected Items pane. Click Below>> to add all children of the selected item. Use << to remove an item from the Selected Items pane. After you add the items you want in the Selected Items panes, click OK.

HDA Namespace Browser

Input Arguments

collapse all

OPC HDA client, specified as an OPC HDA client object.

Initial list of OPC HDA items, specified as a character vector, string, or cell array that identifies the item IDs. When the browser opens, these items are already included in the selected list.

Data Types: char | string | cell

Indicator to load the entire namespace, specified as true. Use this option only if your server does not support partial namespace browsing.

Data Types: logical

Output Arguments

collapse all

List of OPC HDA item IDs, returned as a character vector or cell array of character vectors. Each character vector indicates a selected OPC HDA item ID.

Version History

Introduced in R2013a