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. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


OPC data access part of quality ID


[MajorStr,SubStr,LimitStr] = opc.daQualityString(IDs)


[MajorStr,SubStr,LimitStr] = opc.daQualityString(IDs) converts the data access (DA) portion of the OPC quality attribute in IDs to the major quality text MajorStr, substatus text SubStr, and limit text LimitStr.

If IDs is a vector, each of MajorStr, SubStr, and LimitStr is a cell array the same size as IDs.


Load the OPC HDA example data file and find the qualities of the time stamp union of hdaDataSmall:

load opcSampleHdaData;
newObj = tsunion(hdaDataSmall);
[majorStr, subStr, limitStr] = opc.daQualityString(newObj.Quality);

Introduced in R2011a