Main Content

getNameList

Get names of all aggregate types or item attributes of OPC HDA object

Description

nameCell = getNameList(obj) returns all names stored in the OPC HDA aggregate type or item attribute object obj.

example

Examples

collapse all

Create an OPC HDA client and connect the client to the server.

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

Retrieve all the names of the aggregate types available on the connected server.

allNames = getNameList(hdaObj.Aggregates)
allNames =

  6×1 cell array

    {'INTERPOLATIVE'    }
    {'TIMEAVERAGE'      }
    {'MINIMUMACTUALTIME'}
    {'MINIMUM'          }
    {'MAXIMUMACTUALTIME'}
    {'MAXIMUM'          }

Retrieve all the names of the item attributes available on the connected server.

allNames = getNameList(hdaObj.ItemAttributes)
allNames =

  10×1 cell array

    {'DATA_TYPE'     }
    {'DESCRIPTION'   }
    {'NORMAL_MAXIMUM'}
    {'NORMAL_MINIMUM'}
    {'ITEMID'        }
    {'TRIANGLE'      }
    {'SQUARE'        }
    {'SAWTOOTH'      }
    {'RANDOM'        }
    {'BUCKET'        }

Input Arguments

collapse all

OPC HDA object for aggregate types or item attributes, specified as an opc.hda.AggregateTypes object or an opc.hda.ItemAttributes object.

Example: hdaObj.Aggregates

Output Arguments

collapse all

Property name of OPC HDA client aggregate types or item attributes, returned as a cell array character vectors even if Obj stores only one ID.

Version History

Introduced before R2006a