Changes between Version 7 and Version 8 of WARPLab/Reference/Utility


Ignore:
Timestamp:
May 8, 2013, 7:57:44 AM (11 years ago)
Author:
welsh
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WARPLab/Reference/Utility

    v7 v8  
    7777}}}
    7878results in precisely the same vector of wl_node objects as the single argument case. However, the optional second argument can be changed to an other vector of IDs to speak to boards configured with those IDs on their DIP switches.
     79
     80
     81=== WARPLab 7.1.0 and later ===
     82With 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
     84Examples:
     85
     86{{{
     87nodesConfig = wl_nodesConfig('read', 'my_node_config_file.txt')
     88nodes = wl_initNodes(nodesConfig)
     89}}}
     90
     91or
     92
     93{{{
     94nodes = wl_initNodes( wl_nodesConfig('read', 'my_node_config_file.txt') )
     95}}}
     96
     97will create a vector of wl_node objects in the variable {{{nodes}}} that contains one node per line of the configuration file. 
     98