opcqstr - Convert OPC quality ID into readable string
Syntax
QualityStr = opcqstr(QualityID)
Description
QualityStr = opcqstr(QualityID) constructs
a quality string from a quality ID, stored in the QualityID property of a daitem object.
The string 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 Strings.
Examples
Construct the quality string 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
get | opcqid | opcqparts
 | opcqparts | | opcread |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit