| 79 | |
| 80 | |
| 81 | === WARPLab 7.1.0 and later === |
| 82 | With the release of WARPLab 7.1.0, wl_initNodes has been updated to also accept a vector of configuration structures generated by [wiki:WARPLab/Reference/NodesConfig wl_nodesConfig]. When passed a configuration structure, wl_initNodes will create [wiki:../Architecture/Classes#Node wl_node] objects and configure them according to the information in the structure. Please refer to the documentation on [wiki:WARPLab/Reference/NodesConfig wl_nodesConfig] to create a proper configuration file. |
| 83 | |
| 84 | Examples: |
| 85 | |
| 86 | {{{ |
| 87 | nodesConfig = wl_nodesConfig('read', 'my_node_config_file.txt') |
| 88 | nodes = wl_initNodes(nodesConfig) |
| 89 | }}} |
| 90 | |
| 91 | or |
| 92 | |
| 93 | {{{ |
| 94 | nodes = wl_initNodes( wl_nodesConfig('read', 'my_node_config_file.txt') ) |
| 95 | }}} |
| 96 | |
| 97 | will create a vector of wl_node objects in the variable {{{nodes}}} that contains one node per line of the configuration file. |
| 98 | |