summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
2f05013)
Now that we send the whole payload with the signal (instead of generating
a signal for each measurement) and only process the most recent value, they
aren't necessary any more.
if packet.type == sr.PacketType.ANALOG:
self.measured.emit(device, packet.payload)
if packet.type == sr.PacketType.ANALOG:
self.measured.emit(device, packet.payload)
- # wait a short time so that in any case we don't flood the GUI
- # with new data (for example if the demo device is used)
- self.thread().msleep(100)
-
# signal used to start the worker across threads
_start_signal = QtCore.Signal()
# signal used to start the worker across threads
_start_signal = QtCore.Signal()
'''Stops sampling and the background thread.'''
self.worker.stop_sampling()
self.thread.quit()
'''Stops sampling and the background thread.'''
self.worker.stop_sampling()
self.thread.quit()
- # the timeout is needed when the demo device is used, because it
- # produces so much outstanding data that quitting takes a long time
- self.thread.wait(500)
def sr_pkg_version(self):
'''Returns the version number of the libsigrok package.'''
def sr_pkg_version(self):
'''Returns the version number of the libsigrok package.'''