| OPC Toolbox™ | ![]() |
QualityID = opcqid(QualityStr)
QualityID = opcqid(QualityStr) returns the quality ID, which a number between 0 and 255, corresponding to the specified quality string. The quality string must be in the form 'Major Quality: Quality Sub-status (Limit Status)'.
If QualityStr is a cell array of quality strings, QualityID will be a matrix having the same size as QualityStr.
For more information on quality values, see OPC Quality Strings.
Construct the quality ID from the quality string of the item Random.Real8 on the Matrikon™ OPC Simulation Server.
da = opcda('localhost','Matrikon.OPC.Simulation');
connect(da)
grp = addgroup(da);
itm = additem(grp, 'Random.Real8');
qualityID = opcqid(itm.Quality)![]() | opchelp | opcqparts | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |