def dac_thread(): global OBJ ps = PointStream() ps.objects.append(OBJ) ps.showBlankingPath = False ps.showTrackingPath = False ps.blankingSamplePts = 10 ps.trackingSamplePts = 10 while True: try: d = dac.DAC(dac.find_first_dac()) d.play_stream(ps) except KeyboardInterrupt: sys.exit() except Exception as e: import sys, traceback print '\n---------------------' print 'Exception: %s' % e print '- - - - - - - - - - -' traceback.print_tb(sys.exc_info()[2]) print "\n"