def run_experiment():
    """WLAN Experiment.""" 
    global nodes
    nodes_cfg_ini       = r"nodes_config.ini"

    # Print initial message
    print("\nRunning experiment\n")

    # Read the Node Configuration file and generate a WnNodesConfiguration
    nodes_config = wn_config.WnNodesConfiguration(nodes_cfg_ini)

    # Initialize the Nodes
    nodes = wlan_exp_util.wlan_exp_init_nodes(nodes_config)
    times = wlan_exp_util.wlan_exp_init_time(nodes);

    # For each node:
    #   Reset the Log
    #   Set the channel
    #   Stream log entries to IP_ADDRESS:PORT
    #   
    for node in nodes:
        node.reset_log()
        node.set_channel(CHANNEL)
        node.stream_log_entries(port=PORT, ip_address=IP_ADDRESS, host_id=HOST_ID)

    while(True):
        # Commands to run during the experiment
        #     Currently, this experiment will end when the user kills the 
        #     experiment with Ctrl-C
        time.sleep(100)
def run_experiment():
    global nodes
    nodes_cfg_ini       = r"nodes_config.ini"

    # Read the Node Configuration file and generate a WnNodesConfiguration
    nodes_config = wn_config.WnNodesConfiguration(nodes_cfg_ini)

    # Initialize the Nodes
    nodes = wlan_exp_util.wlan_exp_init_nodes(nodes_config)
    times = wlan_exp_util.wlan_exp_init_time(nodes);

    # For each node:
    #   Reset the Log
    #   Stream log entries to port 9999
    #   
    for node in nodes:
        node.reset_log()
        node.set_channel(CHANNEL)
        node.stream_log_entries(port=PORT, ip_address=IP_ADDRESS, host_id=HOST_ID)

    while(True):
        time.sleep(100)