Giter VIP home page Giter VIP logo

tool-pywisp's Issues

testbench variable in parameter list gets updated by remote switch but not when changed by host

currently when I'm changing a value of a variable directly in the parameter list, it will be submitted with the next run of the experiment and when I change a value with a remote button (probably also with the slider etc.) the variable gets changed on the host and also in the parameter list.

now my problem or feature request is resulting, when I change that value again on the host (for testbench variables which will be sent and received), he will send the new value back to pywisp, but the current or new value doesn't get displayed in the parameter list. So it would be great if a changed variable on the host gets also displayed in the parameter list or in a new value row in the data dock.

It would be possible to look at it in the plot window, but for control variables, it would be more convenient to directly see the value of the variable (like in the parameter list)

Logo readability

auf Win7 ist das Logo zur Zeit nicht besonders lesbar:
image
Denke, die schwarze Umrandung der Buchstaben wie in #1 ist da besser

TCP connection

scheint noch nicht robust genug zu sein.
bei anspruchsvoller visu (kühlkreislauf) wird die Verbindung sehr langsam, und stirbt nach ner weile wegen
(wahrscheinlich) timeouts.

13:45:48 - ConnTCP - ERROR - Writing to host not possible! [WinError 10054] Eine vorhandene Verbindung wurde vom Remotehost geschlossen

müsste man vielleicht mehr als nur ein frame auf einmal pyWisp-seitig lesen?

plotten von parametern

wär's möglich sinnvoll parameter die man an nen versuchsstand sendet auch selber zu plotten ohne sie zurückzusenden?
wär vielleicht auch interessant wenn man während einem experiment parameter ändert

Crash in updatePlot()

Traceback (most recent call last):
File "/home/halmenjo/git/pywisp/pywisp/gui.py", line 770, in plotVectorClicked
self.plotDataVector(item)
File "/home/halmenjo/git/pywisp/pywisp/gui.py", line 821, in plotDataVector
chart.updatePlot()
File "/home/halmenjo/git/pywisp/pywisp/utils.py", line 143, in updatePlot
if self.plotCurves[0]:
IndexError: list index out of range

Steps to reproduce:

  • start visualization
  • create new plot
  • double click on new plot before adding dataPoints

Min als Klasse

@jhalmen durch die init-Methode ist es nun möglich zumindest Daten zu schicken. Das hab ich gerade getestet. Allerdings kann ich mit dem Uno, schlecht testen. Kannst du das ganze bitte aufm Mega testen, mit einer zweiten seriellen Schnittstelle, und am besten mit den ursprünglichen Debug-Meldungen, bzw. an deren Stellen.

Absturz nach Stopp

PyWisp stürzt nach stoppen eines Experiments ab mit

Traceback (most recent call last): File "c:\git\tool-pywisp\pywisp\connection.py", line 41, in run frames = self.min.poll() File "c:\git\tool-pywisp\pywisp\min.py", line 541, in poll self._transport_fifo_send(frame=frame) File "c:\git\tool-pywisp\pywisp\min.py", line 159, in _transport_fifo_send self._serial_write(on_wire_bytes) File "c:\git\tool-pywisp\pywisp\min.py", line 576, in _serial_write self._serial.write(data) File "C:\venv\laborimw_tank\lib\site-packages\pyserial-3.4-py3.6.egg\serial\se rialwin32.py", line 323, in write raise writeTimeoutError serial.serialutil.SerialTimeoutException: Write timeout QObject::~QObject: Timers cannot be stopped from another thread

handleFrame von ExperimentModulen wird nie ausgeführt

in experiments.py in der methode handelFrame:

   for module in getRegisteredExperimentModules():
       if module[1] == moduleName and module[0].connection == connection.__name__:
           dataPoints = module[0].handleFrame(frame)
           if dataPoints is not None:
               return dataPoints

module[0].connection ist nicht was man erwartet, hat sicher auch mit der tatsache zu tun, dass man nicht mit den instanzen selber arbeitet.

multi connection tcp

bei 2 definierten tcp connections ConnTCP und ConnTCPSim scheint pywisp beide connections verbinden zu wollen.
log:

09:10:17 - MainGui - INFO - Laboratory visualization
09:10:17 - MainGui - INFO - Found Connection: ConnTCP
09:10:17 - MainGui - INFO - Found Connection: ConnTCPSim
09:10:17 - MainGui - INFO - Load config file: default.sreg
09:10:17 - MainGui - INFO - Lade 1 Experimente
09:10:17 - MainGui - INFO - Experiment 'MANUAL' applied
09:10:26 - MainGui - INFO - Connection for ConnTCP established!
09:10:27 - ConnTCPSim - ERROR - Connection to the server is not possible!
09:10:27 - MainGui - WARNING - No connection for ConnTCPSim established! Check your settings!

wäre vielleicht sinnvoll die connection auswählen zu können die man derzeit benutzen will, um zB zwischen Testserver und Versuchsstand wechseln zu können

Move from ino to c

Es ist in der Arduino IDE nicht möglich ein zusätzliches Include-Verzeichnis zu setzen, alle Möglichkeiten über die platform.txt lassen sich zwar compilen, aber am Ende nicht linken.

Zukünftig sollte die Toolchain direkt installiert werden und mittels Makefile zu arbeiten, alternativ könnte vorher noch https://github.com/sudar/Arduino-Makefile ausprobiert werden.

Setup.py install: Fehler beim Kompilieren von yaml

Bei der Installation tritt bei mir ein Fehler beim Kompilieren von yaml auf, da das Package libyaml-devel (Fedora) nicht vorhanden war. Komischerweise wurde pywisp trotzdem installiert und nur der PyQt5.sip Fehler war das Problem (gelöst durch Installation von PyQt5 bevor pywisp installiert wurde). Evtl. für requirements relevant und sonst einfach Issue schließen.

Searching for PyYAML>=3.12
Reading https://pypi.org/simple/PyYAML/
Downloading https://files.pythonhosted.org/packages/a8/c6/a8d1555e795dbd0375c3c93b576ca13bbf139db51ea604afa19a2c35fc03/PyYAML-4.2b4.tar.gz#sha256=3c17fb92c8ba2f525e4b5f7941d850e7a48c3a59b32d331e2502a3cdc6648e76
Best match: PyYAML 4.2b4
Processing PyYAML-4.2b4.tar.gz
Writing /tmp/easy_install-q7o2_dtz/PyYAML-4.2b4/setup.cfg
Running PyYAML-4.2b4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-q7o2_dtz/PyYAML-4.2b4/egg-dist-tmp-c9pfte8w
In file included from ext/_yaml.c:565:
ext/_yaml.h:2:10: fatal error: yaml.h: No such file or directory
 #include <yaml.h>
          ^~~~~~~~
compilation terminated.
Error compiling module, falling back to pure Python
zip_safe flag not set; analyzing archive contents...
Moving PyYAML-4.2b4-py3.6-linux-x86_64.egg to path/envs/pywisp/lib/python3.6/site-packages
Adding PyYAML 4.2b4 to easy-install.pth file

Remote widget update

i have two remotes that act on the same parameter (a slider and a pushbutton). both correctly update the parameter in the parameter list, but currently the pushbutton cannot update the slider position. it would be nice if the slider would actually be locked to the parameter value and always displays the correct value.

Problems with remote widget shortcuts

When a shortcut got changed:

  • old shortcut remains in edit window
  • old shortcut works as well, new one gets just added instead of replaced
  • space doesn`t work as shortcut

Plotten wird sehr zäh

@jhalmen könntest du bitte mal 9430972 profilen, bzgl. des plottings. Nach etwa 50 s wurde das heute extrem zäh. Vermute das es an der updatePlot Methode der Plotchart-Klasse hängt, durch das ständige neuschreiben, des gesamten Verlaufs. Muss aber noch longpipe einchecken^^

Dokumentation hinzufügen

  • sphinx Dokumentation hinzufügen
  • Code Dokumentation hinzufügen
  • Beispiele für serielle Implementierung mit Arduino und Tcp/Ip (sobald verfügbar) hinzufügen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.