This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Flatten hierarchical OPC name space


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.


Retrieve the name space for the Matrikon™ Simulation Server, and then flatten the name space:

da = opcda('localhost', 'Matrikon.OPC.Simulation');
hierNS = getnamespace(da)
flatNS = flatnamespace(hierNS)

Introduced before R2006a

Was this topic helpful?