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.


Class: opc.hda.Data
Package: opc.hda

Indices matching OPC HDA data item IDs


ind = getIndexFromID(dObj, 'itemID')
ind = getIndexFromID(dObj, idCell)


ind = getIndexFromID(dObj, 'itemID') returns the index of HDA data object array dObj that matches the item ID 'itemID'.

ind = getIndexFromID(dObj, idCell) returns the indices of HDA data object array dObj that match the item IDs contained in the cell array idCell. idCell must be a cell array of character vectors.


Load the OPC HDA example data file and find the index of 'Item Example.Item.2':

load opcdemoHDAData;
ind = getIndexFromID(hdaDataVis, 'Example.Item.2');
Was this topic helpful?