Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

browseNameSpace (opchda)

Graphically browse OPC HDA server name space

Syntax

ItmList = browseNameSpace(HdaObj)
ItmList = browseNameSpace(HdaObj,ItmListInit)
ItmList = browseNameSpace(HdaObj,ItmListInit,true)

Description

example

ItmList = browseNameSpace(HdaObj) opens a graphical name space 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. Use ItmList to retrieve data for those items with function readraw, readprocessed, readattime, or readmodified.

The name space is retrieved from the server incrementally, as needed.

ItmList = browseNameSpace(HdaObj,ItmListInit) lets you specify an initial list of item IDs to be augmented.

ItmList = browseNameSpace(HdaObj,ItmListInit,true) loads the entire name space 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);

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 name space, specified as true. Use this option only if your server does not support partial name space 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.

Introduced in R2013a

Was this topic helpful?