Skip to content

YulinWu/servers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

servers

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

Set up environment

Install PyQt and PyQwt in a virtualenv

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.

  1. Install requisite system libs for compiling PyQt: sudo apt-get install python2.7-dev libxext-dev qt4-dev-tools build-essential

  2. 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.

  3. Unpack the source packages

  4. cd ~/src

  5. $ tar -zxf where/you/downloaded/sip-4.16.9.tar.gz

  6. $ tar -zxf where/you/downloaded/PyQt-x11-gpl-4.11.4.tar.gz

  7. $ tar -zxf where/you/downloaded/PyQwt-5.2.0.tar.gz

  8. Activate your virtualenv, e.g. via workon labrad.

  9. Compile and install SIP

  10. $ cd ~/src/sip-4.16.9

  11. $ python configure.py

  12. $ make

  13. $ sudo make install

  14. You should see that the relevatn files are copied into your virtualenv.

  15. Compile and install PyQt

  16. $ cd ~/src/PyQt-x11-gpl-4.11.4

  17. $ python configure-ng.py -q /usr/bin/qmake-qt4

  18. $ make -j4 # This step might take a while.

  19. $ sudo make install

  20. Compile and install PyQwt

  21. $ cd ~/src/PyQwt-5.2.0/configure

  22. $ python configure.py -Q ../qwt-5.2

  23. $ make -j4

  24. $ sudo make install

About

LabRAD servers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 87.5%
  • Scala 11.1%
  • Other 1.4%