Changeset 499

Show
Ignore:
Timestamp:
10/03/09 19:29:31 (15 years ago)
Author:
bhilburn
Message:

Some changes to benchmark_dsa.py that didn't get included in the last checkin. Fixed option flags.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/cross-examples/python/gnuradio-examples/benchmark_dsa.py

    r498 r499  
    6767 
    6868    global stats_array, count_array, time_array, n_rcvd 
    69     global n_right, sync_status, mode, ch, traffic_flag,  
     69    global n_right, sync_status, mode, ch, traffic_flag 
    7070    global n_attempts, return_flag, crossShellHost, crossShellPort 
    7171 
     
    140140                    UpdateParameterPerformance(currentParameters,1,o,1) 
    141141                except: 
     142                    print "fail" 
    142143            else: 
    143144                # Get the average communication time 
     
    227228    parser_tx.add_option("","--from-file", default=None, 
    228229                          help="use file for packet contents") 
    229     parser_tx.add_option("-h", "--hostname", action="store", type="string", dest="crossShellHost", 
     230    parser_tx.add_option("-n", "--hostname", action="store", type="string", dest="crossShellHost", 
    230231            default="localhost", help="Set the hostname/IP for the VTCROSS shell"); 
    231232    parser_tx.add_option("-p", "--port", action="store", type="string", dest="crossShellPort", 
     
    279280    parser_rx.add_option("-T", "--threshold", type="eng_float", default=1.5e8, 
    280281                          help="set primary user sensing energy threshold [default=%default]") 
    281     parser_rx.add_option("-h", "--hostname", action="store", type="string", dest="crossShellHost", 
     282    parser_rx.add_option("-n", "--hostname", action="store", type="string", dest="crossShellHost", 
    282283            default="localhost", help="Set the hostname/IP for the VTCROSS shell"); 
    283284    parser_rx.add_option("-p", "--port", action="store", type="string", dest="crossShellPort", 
     
    305306        else: 
    306307            print "[[ Using the CROSS DSA Cognitive Engine ]]" 
     308            crossShellHost = options_rx.crossShellHost 
     309            crossShellPort = options_rx.crossShellPort 
    307310            print "[[ VTCROSS shell located at " + crossShellHost + ":" + crossShellPort + " ]]" 
    308311            SetCrossShellLocation(crossShellHost, crossShellPort)