Main Content

getIDList

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

Description

ID = getIDList(obj) returns all IDs 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 IDs of the aggregate types available on the connected server.

allIDs = getIDList(hdaObj.Aggregates)
allIDs =

  6×1 int64 column vector

    1
    4
    7
    8
    9
   10

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

allIDs = getIDList(hdaObj.ItemAttributes)
allIDs =

  10×1 int64 column vector

            1
            2
           11
           12
           13
   4294967291
   4294967292
   4294967293
   4294967294
   4294967295

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 ID of OPC HDA client aggregate type or item attribute, returned as a scalar or a vector.

Example: 4

Version History

Introduced before R2006a