def callbackTestFunc(bufPtr, bufLen): global START_TIME #hacking about for determining callback interval times. I shouldn't be using global, but fukkit. now = time.time() print "Callback!", bufPtr, bufLen print bufPtr[0] arr = SignalHound.decodeRawSweep(bufPtr, bufLen) print "NP Array = ", arr.shape, arr print "Elapsed Time = ", now-START_TIME START_TIME = now