# HG changeset patch # User David Douard # Date 1219381511 -7200 # Node ID 4cd8edd2b4e757a7e83db6a0799d372593efedff # Parent 879083ec235559b909525ef6cd8ae99bfb2a6d8a Display an introduction message when running gpib_detect. diff -r 879083ec2355 -r 4cd8edd2b4e7 bin/gpib_detect --- a/bin/gpib_detect Thu Aug 21 19:53:22 2008 +0200 +++ b/bin/gpib_detect Fri Aug 22 07:05:11 2008 +0200 @@ -19,16 +19,18 @@ help="Device of connected Prologix GPIB bundle [/dev/ttyUSB0]",) options, argv = opt.parse_args(sys.argv) + print "Detecting GPIB devices on the bus. Please wait until completion." c = GPIBController(device=options.device) signal.signal(signal.SIGINT, c.stop) signal.signal(signal.SIGQUIT, c.stop) time.sleep(1) devices = c.detect_devices() - print "Found devices:" + c.stop() + + print "GPIB devices:" for k in sorted(devices.keys()): print "%-3d: %s"%(k, devices[k]) - c.stop() if __name__ == "__main__": main()