browsenamespace (opcda)

Graphically browse OPC DA server name space

Syntax

  • ItmList = browsenamespace(DaObj) example
  • ItmList = browsenamespace(DaObj,ItmListInit)
  • ItmList = browsenamespace(DaObj,ItmListInit,true)

Description

example

ItmList = browsenamespace(DaObj) opens a graphical name space browser for the OPC Data Access Client object DaObj. The graphical interface lets you construct a list of items and return a list of those fully qualified item IDs to ItmList. You can use ItmList to add items to a Group object using additem. The name space is retrieved from the server incrementally, as needed.

ItmList = browsenamespace(DaObj,ItmListInit) lets you specify an initial list of item IDs to augment.

ItmList = browsenamespace(DaObj,ItmListInit,true) loads the entire name space into the dialog box.

Examples

expand all

Browse Local Matrikon Server for OPC DA Items

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

DaObj = opcda('localhost','Matrikon.OPC.Simulation');
connect(DaObj);
ItmList = browsenamespace(DaObj);

Input Arguments

expand all

DaObj — OPC DA clientOPC DA client object

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

ItmListInit — Initial list of OPC DA itemsarray of OPC DA items

Initial list of OPC DA items, specified as an array of OPC DA items.

true — Indicator to load entire name spacetrue

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

expand all

ItmList — List of OPC DA itemsarray of OPC DA items

List of OPC DA items, returned as an array of OPC DA items.

Was this topic helpful?