|
pYpHpoTManual
pYpHpoT Manual.
Phase-Deploy IntroductionThe pYpHpoT is a Python script that reads the data from the pHduino and plots the pH and the temperature and save the data in a text file. This software is multiplatform and runs in Linux , Windows and MacOSX (the last one was not tested, yet). Dependence
Pay attention to the packages versions. TIP: Read the second topic about the pyQWT installation at the download page. http://pyqwt.sourceforge.net/download.html Editing the GUIThe Graphical User Interface (GUI) is encoded in the pyphpot.ui file. You can modify the GUI using the GUI Editor QtDesigner. Most Linux distributions have the QtDesigner in the repositories. After a modification in the pyphplot.ui, you need run pyuic4 to converts a ui file to a python module. It is very important don't change the files names. For example Linux machine # pyuic4 pyphpot.ui -o pyphpotui.py Windows machine $ pyuic4 pyphpot.ui > pyphpotui.py At the end, run the python script. TroubleshootingsIf you had a problem like this $ python pyphplot_v01.py
Traceback (most recent call last):
File "pyphpot_v01.py", line 8, in <module>
from pyphpotui import Ui_MainWindow
File "/home/me/Projects/pyphpot_v7/pyphpotui.py", line 135, in <module>
from qwt_plot import QwtPlot
ImportError: No module named qwt_plotOpen the pyphplotui.py in a text editor and change the line from from qwt_plot import QwtPlot to from PyQt4.Qwt5 import QwtPlot Reference: http://www.riverbankcomputing.com/pipermail/pyqt/2006-August/013960.html TipsAdjust the acquisition time to avoid huge data files. To do this, open a serial terminal and use the command interval_ms. Remember: temperature and pH are slow measurements. The date and time format is the ISO 8601. http://en.wikipedia.org/wiki/ISO_8601 Check the serial port name out of the pHduino. Examples of serial ports are: Linux: /dev/ttyUSB0 Windows: COM1 |