A collection of LabRAD servers. Many of these are for specific pieces of hardware. In many only have the most basic functionality, or whatever the person who wrote them needed for their experiment.
Some servers that may be of general interest:
gpib_bus.py Provides an interface to a GPIB bus (uses VISA) gpib_device_manager.py Handles GPIB device identification and notifies the appropriate device server serial_server Serial port interface using pyserial data_vault.py Store numeric data from experiments, supported by the grapher client data_vault_multihead.py Data vault implementation that can connect to multiple LabRAD managers
We'd like to install PyQt and PyQwt into the virtualenv we use for labrad.
Unfortunately, as of this writing pip install PyQt
doesn't work, so we need to do something else.
The following instructions will have you download the sources, compile them, and install into your virtualenv by invoking the python installation scripts manually with your virtualenv's interpreter.
-
Install requisite system libs for compiling PyQt:
sudo apt-get install python2.7-dev libxext-dev qt4-dev-tools build-essential
-
Download the source packages for SIP, PyQt, and PyQwt. Choose a location in which you will unpack the source packages. In the following instructions we assume
~/src
. -
Unpack the source packages
-
cd ~/src
-
$ tar -zxf where/you/downloaded/sip-4.16.9.tar.gz
-
$ tar -zxf where/you/downloaded/PyQt-x11-gpl-4.11.4.tar.gz
-
$ tar -zxf where/you/downloaded/PyQwt-5.2.0.tar.gz
-
Activate your virtualenv, e.g. via
workon labrad
. -
Compile and install SIP
-
$ cd ~/src/sip-4.16.9
-
$ python configure.py
-
$ make
-
$ sudo make install
-
You should see that the relevatn files are copied into your virtualenv.
-
Compile and install PyQt
-
$ cd ~/src/PyQt-x11-gpl-4.11.4
-
$ python configure-ng.py -q /usr/bin/qmake-qt4
-
$ make -j4
# This step might take a while. -
$ sudo make install
-
Compile and install PyQwt
-
$ cd ~/src/PyQwt-5.2.0/configure
-
$ python configure.py -Q ../qwt-5.2
-
$ make -j4
-
$ sudo make install