- Timestamp:
- 10/03/09 19:29:31 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/cross-examples/python/gnuradio-examples/benchmark_dsa.py
r498 r499 67 67 68 68 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 70 70 global n_attempts, return_flag, crossShellHost, crossShellPort 71 71 … … 140 140 UpdateParameterPerformance(currentParameters,1,o,1) 141 141 except: 142 print "fail" 142 143 else: 143 144 # Get the average communication time … … 227 228 parser_tx.add_option("","--from-file", default=None, 228 229 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", 230 231 default="localhost", help="Set the hostname/IP for the VTCROSS shell"); 231 232 parser_tx.add_option("-p", "--port", action="store", type="string", dest="crossShellPort", … … 279 280 parser_rx.add_option("-T", "--threshold", type="eng_float", default=1.5e8, 280 281 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", 282 283 default="localhost", help="Set the hostname/IP for the VTCROSS shell"); 283 284 parser_rx.add_option("-p", "--port", action="store", type="string", dest="crossShellPort", … … 305 306 else: 306 307 print "[[ Using the CROSS DSA Cognitive Engine ]]" 308 crossShellHost = options_rx.crossShellHost 309 crossShellPort = options_rx.crossShellPort 307 310 print "[[ VTCROSS shell located at " + crossShellHost + ":" + crossShellPort + " ]]" 308 311 SetCrossShellLocation(crossShellHost, crossShellPort)