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.


Construct quality ID from item quality


QualityID = opcqid(QualityStr)


QualityID = opcqid(QualityStr) returns the quality ID, which is a number between 0 and 255, corresponding to the specified quality attribute. The quality must be a character vector or string in the form 'Major Quality: Quality Sub-status (Limit Status)'.

If QualityStr is an array of quality values, then QualityID will be a matrix having the same size as QualityStr.

For more information on quality values, see OPC Quality.


Construct the quality ID from the quality text of the item Random.Real8 on the Matrikon™ OPC Simulation Server:

da = opcda('localhost','Matrikon.OPC.Simulation');
grp = addgroup(da);
itm = additem(grp,'Random.Real8'); 
qualityID = opcqid(itm.Quality)

See Also


Introduced in R2007b