Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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 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

Was this topic helpful?