Main Content

opc.daQualityString

(To be removed) OPC data access part of quality ID

Support for the OPC Data Access (DA) standard will be removed in a future release. Instead use OPC Unified Architecture (UA). See Compatibility Considerations.

Syntax

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

Description

[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.

Examples

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);

Version History

Introduced in R2011a

expand all