This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this 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 opcSampleHdaData;
ind = getIndexFromID(hdaDataVis,'Example.Item.2');
Was this topic helpful?