Documentation Center

  • Trial Software
  • Product Updates

getNameList

Get all aggregate type or item attribute names

Syntax

NameCell = getNameList(Obj)

Description

NameCell = getNameList(Obj) returns all names stored in the OPC HDA aggregate type or item attribute object Obj. NameCell is a cell array of strings (even if Obj stores only one ID).

Examples

Retrieve the names of the aggregate types provided by the Matrikon™ Simulation Server.

hdaObj = opchda('localhost', 'Matrikon.OPC.Simulation');
connect(hdaObj);
allNames = getNameList(hdaObj.Aggregates)
 

Retrieve the names of the item attributes provided by the Matrikon Simulation Server.

hdaObj = opchda('localhost', 'Matrikon.OPC.Simulation');
connect(hdaObj);
allNames = getNameList(hdaObj.ItemAttributes)

See Also

|

Was this topic helpful?