Main Content

getDescription

Get description of OPC HDA aggregate type or item attribute

Syntax

DStr = getDescription(Obj,ID)
DStr = getDescription(Obj,NameStr)

Description

DStr = getDescription(Obj,ID) returns the description character vector associated with the aggregate type or item attribute given by ID. If ID is a vector, DStr is a cell array of description character vectors.

DStr = getDescription(Obj,NameStr) returns the description character vector associated with the aggregate type or item attribute given by the character vector or string NameStr. If NameStr is an array, DStr is a cell array of description character vectors.

Examples

Get a description of all aggregate types provided by the Matrikon™ Simulation Server.

hdaObj = opchda('localhost','Matrikon.OPC.Simulation');
connect(hdaObj);
allDesc = getDescription(hdaObj.Aggregates)

Get a description of all item attributes provided by the Matrikon Simulation Server.

hdaObj = opchda('localhost','Matrikon.OPC.Simulation');
connect(hdaObj);
allDesc = getDescription(hdaObj.ItemAttributes)

See Also

Functions