Products & Services Solutions Academia Support User Community Company

Learn more about OPC Toolbox   

flatnamespace - Flatten hierarchical OPC name space

Syntax

FNS = flatnamespace(NS)

Description

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.

Examples

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

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

See Also

getnamespace | serveritems

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS