Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

opcqstr

Convert OPC quality ID into readable text

Syntax

QualityStr = opcqstr(QualityID)

Description

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.

Examples

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');
connect(da)
grp = addgroup(da);
itm = additem(grp,'Random.Qualities'); 
qualitystr = opcqstr(itm.QualityID)

See Also

Functions

Introduced before R2006a

Was this topic helpful?