|
39 | 39 | __authoremail__ = "vangils.dennis@gmail.com" |
40 | 40 | __url__ = "https://github.com/Dennis-van-Gils/DvG_dev_Arduino" |
41 | 41 | __date__ = "14-09-2018" |
42 | | -__version__ = "1.0.1" |
| 42 | +__version__ = "1.0.2" |
43 | 43 |
|
44 | 44 | import queue |
45 | 45 | import numpy as np |
@@ -187,6 +187,9 @@ def attach_device(self, dev): |
187 | 187 | if type(self.dev) == self.NoAttachedDevice: |
188 | 188 | self.dev = dev |
189 | 189 | self.dev.mutex = QtCore.QMutex() |
| 190 | + else: |
| 191 | + pft("Device can be attached only once. Already attached to '%s'." % |
| 192 | + self.dev.name) |
190 | 193 |
|
191 | 194 | # -------------------------------------------------------------------------- |
192 | 195 | # Create workers |
@@ -336,9 +339,9 @@ class Worker_DAQ(QtCore.QObject): |
336 | 339 | every DAQ update. It should return True when everything went |
337 | 340 | successful, and False otherwise. |
338 | 341 |
|
339 | | - NOTE: No changes to the GUI should run inside this function! If |
340 | | - you do anyhow, expect a penalty in the timing stability of this |
341 | | - worker. |
| 342 | + NOTE: No direct changes to the GUI should run inside this |
| 343 | + function! If you do anyhow, expect a penalty in the timing |
| 344 | + stability of this worker. |
342 | 345 |
|
343 | 346 | E.g. pseudo-code, where 'time' and 'reading_1' are variables |
344 | 347 | that live at a higher scope, presumably at main/GUI scope level. |
@@ -493,9 +496,6 @@ class Worker_send(QtCore.QObject): |
493 | 496 | needed, use the QtCore.pyqtSignal() mechanism to instigate GUI changes. |
494 | 497 |
|
495 | 498 | Args: |
496 | | - dev: |
497 | | - Reference to a 'device' instance with I/O methods. |
498 | | -
|
499 | 499 | alt_process_jobs_function (optional, default=None): |
500 | 500 | Reference to an user-supplied function performing an alternative |
501 | 501 | job handling when processing the worker_send queue. The default |
|
0 commit comments