Documentation

This is machine translation

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

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 NameStr. If NameStr is a cell array of character vectors, 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

Was this topic helpful?