Main Content

opcqstr

(To be removed) Convert OPC quality ID into readable text

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

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)

Version History

Introduced before R2006a

expand all

See Also

Functions