Skip to content

Commit eb5db17

Browse files
Added dependence dvg-pyqt-controls==1.0.0
1 parent a818ecd commit eb5db17

File tree

6 files changed

+10
-655
lines changed

6 files changed

+10
-655
lines changed

README.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ DvG_Arduino_PyQt_multithread_demo
1313

1414
Demonstration of multithreaded communication, real-time plotting and logging of live Arduino data using PyQt5 and PyQtGraph.
1515

16-
This demo needs just a bare Arduino(-like) device that, for demonstration purposes, will act as a numerical waveform generator. The source files are included and they should compile over a wide range of Arduino boards. Connect the Arduino to any USB port on your computer and run this Python demo. It should automatically find the Arduino and show you a fully functioning GUI with live data at a stable acquisition rate of 100 Hz.
16+
This demo needs just a bare Arduino(-like) device that, for demonstration purposes, will act as a numerical waveform generator. The source files are included and they should compile over a wide range of Arduino boards. Connect the Arduino to any USB port on your computer and run this Python demo. It should automatically find the Arduino and show you a fully functioning GUI with live data at a stable acquisition rate of 100 Hz. Alternatively, you can simulate the Arduino by running ``python demo_A_GUI_full.py simulate``.
1717

1818
It features a PyQt5 graphical user-interface, with a PyQtGraph plot for fast real-time plotting of data. The main thread handles the GUI and redrawing of the plot, another thread deals with acquiring data from the Arduino at a fixed rate and a third thread maintains a thread-safe queue where messages to be sent out to the Arduino are managed.
1919

@@ -24,12 +24,13 @@ Other depencies you'll need for this demo can be installed by running::
2424
pip install -r requirements.txt
2525

2626
* `dvg-debug-functions <https://pypi.org/project/dvg-debug-functions/>`_
27-
* `dvg-qdeviceio <https://pypi.org/project/dvg-qdeviceio/>`_
2827
* `dvg-devices <https://pypi.org/project/dvg-devices/>`_
28+
* `dvg-pyqt-controls <https://pypi.org/project/dvg-pyqt-controls/>`_
2929
* `dvg-pyqt-filelogger <https://pypi.org/project/dvg-pyqt-filelogger/>`_
3030
* `dvg-pyqtgraph-threadsafe <https://pypi.org/project/dvg-pyqtgraph-threadsafe/>`_
31-
* `psutil <https://pypi.org/project/psutil/>`_
32-
* `pySerial <https://pypi.org/project/pyserial/>`_
31+
* `dvg-qdeviceio <https://pypi.org/project/dvg-qdeviceio/>`_
3332
* `NumPy <http://www.numpy.org/>`_
33+
* `psutil <https://pypi.org/project/psutil/>`_
3434
* `PyQt5 <https://pypi.org/project/PyQt5/>`_
3535
* `PyQtGraph <http://pyqtgraph.org/>`_
36+
* `pySerial <https://pypi.org/project/pyserial/>`_

dvg_fakearduino.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
3+
"""Simulates the Arduino communication stream as expected by demo A.
4+
"""
35
__author__ = "Dennis van Gils"
46
__authoremail__ = "vangils.dennis@gmail.com"
5-
__url__ = "https://github.com/Dennis-van-Gils/..."
6-
__date__ = "06-08-2020"
7+
__url__ = "https://github.com/Dennis-van-Gils/DvG_Arduino_PyQt_multithread_demo"
8+
__date__ = "11-08-2020"
79
__version__ = "0.0.1"
810
# pylint: disable=unused-argument
911

@@ -43,9 +45,6 @@ def query_ascii_values(self, *args, **kwargs) -> tuple:
4345

4446
return (True, (t, wave))
4547

46-
# def query(self, *args, **kwargs) -> tuple:
47-
# return (True, "")
48-
4948
def close(self):
5049
pass
5150

0 commit comments

Comments
 (0)