98

GitHub - fossasia/pslab-python: Python Library for PSLab Desktop: http://pslab.f...

 5 years ago
source link: https://github.com/fossasia/pslab-python
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

PSLab-python

The Pocket Science Lab from FOSSASIA https://pslab.io

Build Status Gitter Codacy Badge

This repository hosts the python library for communicating with PSLab. This can be installed on a linux pc/raspberry pi. With this, one can communicate with the hardware using simple python code.

The goal of PSLab is to create an Open Source hardware device (open on all layers) that can be used for experiments by teachers, students and citizen scientists. Our tiny pocket lab provides an array of sensors for doing science and engineering experiments. It provides functions of numerous measurement devices including an oscilloscope, a waveform generator, a frequency counter, a programmable voltage, current source and as a data logger. Our website is at: https://pslab.io

Communication

Please join us on the following channels:

Installation

To install PSLab on Debian based Gnu/Linux system, the following dependencies must be installed.

Dependencies

  • PyQt 4.7+, PySide, or PyQt5
  • python 2.6, 2.7, or 3.x
  • NumPy, Scipy
  • pyqt4-dev-tools   For pyuic4
  • Pyqtgraph   For Plotting library
  • pyopengl and qt-opengl   For 3D graphics
  • iPython-qtconsole   optional
Now clone both the repositories pslab-apps and pslab.
Libraries must be installed in any order
  1. pslab-apps
  2. pslab

Note If user is only interested in using PSLab as an acquisition device without a display/GUI, only one repository pslab needs to be installed

To install, cd into the directories
$ cd <SOURCE_DIR>

and run the following (for both the repos)

$ sudo make clean

$ sudo make

$ sudo make install

Now you are ready with the PSLab software on your machine :)

For the main GUI (Control panel), you can run Experiments from the terminal.

$ Experiments

Development Environment

To set up the development environment, install the packages mentioned in dependencies. For building GUI's Qt Designer is used.

Steps to build documentation

First install sphinx by running following command

pip install -U Sphinx

Then go to pslab/docs and run the following command

$ make html

Blog posts related to PSLab on FOSSASIA blog


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK