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.

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 character vectors (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)
Was this topic helpful?