| OPC Toolbox™ | ![]() |
FNS = flatnamespace(NS)
FNS = flatnamespace(NS) flattens the hierarchical name space NS, by recursively removing all information in the Nodes fields of NS and placing that information into additional entries in the root structure of FNS. You obtain a hierarchical name space using the 'hierarchical' flag in getnamespace.
This example retrieves the name space for the Matrikon™ Simulation Server, and flattens the name space after retrieval.
da = opcda('localhost', 'Matrikon.OPC.Simulation');
connect(da);
hierNS = getnamespace(da)
flatNS = flatnamespace(hierNS)
![]() | disp | flushdata | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |