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.


Convert OPC quality ID into readable text


QualityStr = opcqstr(QualityID)


QualityStr = opcqstr(QualityID) constructs a quality character vector from a quality ID, stored in the QualityID property of a daitem object. The character vector is of the form 'Major Quality: Quality Substatus: Limit Status'. The Limit Status part is omitted if the limit status is set to Not Limited. For information on each of the quality parts, see opcqparts.

If QualityID is specified as a vector or matrix of quality IDs, then QualityStr will be a cell array having the same size as QualityID.

For more information on quality values, see OPC Quality.


Construct the quality character vector from the quality ID of the item Random.Qualities on a Matrikon™ OPC Simulation Server:

da = opcda('localhost','Matrikon.OPC.Simulation');
grp = addgroup(da);
itm = additem(grp,'Random.Qualities'); 
qualitystr = opcqstr(itm.QualityID)

See Also


Introduced before R2006a