Graphically browse OPC DA server name space
opens a graphical name space browser for the OPC Data Access Client object
ItmList = browsenamespace(
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.
Connect to the local Matrikon Simulation server and browse for items.
DaObj = opcda('localhost','Matrikon.OPC.Simulation'); connect(DaObj); ItmList = browsenamespace(DaObj);
DaObj— OPC DA client
OPC DA client, specified as an OPC DA client object.
ItmListInit— Initial list of OPC DA items
Initial list of OPC DA 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.
true— Indicator to load entire name space
Indicator to load the entire name space, specified as
true. Use this option only if your server does
not support partial name space browsing.
ItmList— List of OPC DA item IDs
List of OPC DA item IDs, returned as a character vector or cell array of character vectors. Each character vector indicates a selected OPC DA item ID.