-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnippets.txt
40 lines (31 loc) · 1.67 KB
/
snippets.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TODO: Make documentation uniform
https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html
https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
Try to follow: http://google.github.io/styleguide/pyguide.html
Stick to Google style:
https://pythonhosted.org/an_example_pypi_project/sphinx.html
https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html#module-sphinx.ext.napoleon
http://openalea.gforge.inria.fr/doc/openalea/doc/_build/html/source/sphinx/rest_syntax.html
"""
DAQ_trigger.INTERNAL_TIMER
I/O device slaved to an external timer originating from Worker_DAQ
DAQ_trigger.SINGLE_SHOT_WAKE_UP
Typical use case: Multiple I/O devices that are slaved to a common single
external timer originating from a higher scope Python module than
this 'DvG_QdeviceIO' module.
See Keysight_N8700_PSU for an example.
def simultaneously_trigger_update_multiple_devices():
for qdevio in qdevios:
qdevio.wake_up()
timer_qdevios = QtCore.QTimer()
timer_qdevios.timeout.connect(simultaneously_trigger_update_multiple_devices)
timer_qdevios.start(UPDATE_INTERVAL_MS)
DAQ_trigger.CONTINUOUS
Typical use case: I/O device acting as a master and outputting a continuous
stream of data. The worker_DAQ will start up in suspended mode (idling).
This allows for a start command to be send to the I/O device, for instance,
over a Worker_jobs instance. Once the start command has been received and
processed by the device, such that it will output a continuous stream of
data, worker_DAQ can be taken out of suspended mode and have it listen and
receive this data stream.
"""