Installation Windows 7 - syue99/Lab_control GitHub Wiki
Install pylabrad Requirements
- Install python 2.7 http://python.org/download/releases/2.7.3/ Latest in the 2.7 line is 2.7.8.
To check that python was installed correctly, at the "Command Prompt" enter
> python
This should output python version information, and open up the python command prompt
>>>
If this did not happen, but an error about 'python' not being a valid command came up, then you likely need to edit your "path" environment variable. Include at the end of the environment variable (with no spaces after the last existing entry) ";C:\Python27". While there also include ";C:\Python27\Scripts", this will allow you to use some python tools on the command prompt that will be helpful later. The "path" environment variable should now have at the end
";C:\Python27;C:\Python27\Scripts".
The last step is to restart your computer. At this point "python" should be a valid command on the Windows "Command Prompt".
- Install Zope.Interface for Python 2.7: http://pypi.python.org/pypi/zope.interface/4.0.1
Download the .tar.gz file, and then run
Or Download zope.interface-4.0.1.win-amd64-py2.7.exe (md5) and follow installation
python setup.py install
- Install Twisted 12.2 for Python 2.7 from http://twistedmatrix.com/trac/wiki/Downloads.
Install pylabrad
This can be done in two ways: using the binary file or installing from source:
pylabrad Home
pylabrad is currently hosted on github, here:
https://github.com/martinisgroup/pylabrad
Binary
This is the easiest way but may not provide the latest bug-fixes. Download and install from http://sourceforge.net/projects/pylabrad/files/pylabrad/. You may need to run this installation file as administrator.
SVN Checkout
Gets the latest source code
- Install tortoiseSVN from http://tortoisesvn.net/downloads.html .
Then use the windows shell.
cd Downloads
svn co https://pylabrad.svn.sourceforge.net/svnroot/pylabrad/trunk pylabrad
setup.py install
Git
Pull files from Martinis group rep at https://github.com/martinisgroup/pylabrad cd into folder with pylabrad and in windows shell: setup.py install
Install Additional python modules:
- Install pyserial from http://pypi.python.org/pypi/pyserial . Note that pyserial 2.6 is used with python 2.7.
- Install numpy from http://sourceforge.net/projects/numpy/files/ (choose python2.7 version)
- Install matplotlib from http://sourceforge.net/projects/matplotlib/files/ (choose python2.7 version) - additional information would be helpful here, especially for Windows.
- Install PyQT for python 2.7 from http://www.riverbankcomputing.co.uk/software/pyqt/download
- Install scipy from http://sourceforge.net/projects/scipy/files/scipy/0.9.0/
Direct Ethernet Server (if necessary)
- Install the winPcap library: http://www.winpcap.org/install/default.htm
- Server found among LabRAD Modules LabRAD Modules: http://sourceforge.net/projects/labradmodules/
Node Server
- Install pywin32 from sourceforge http://sourceforge.net/projects/pywin32/
Install GPIB support
- Install NI VISA drivers from http://joule.ni.com/nidu/cds/view/p/id/2914/lang/en
- Install pyvisa from http://sourceforge.net/projects/pyvisa/. May need to run installation as an administrator
Opal Kelly (if necessary)
- Use the Opal Kelly CD to install the drivers, the 32bit version works well on 64bit Windows 7.
Troubleshooting:
- In case a msvcr71.dll is missing, download it http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71 and put to /windows/system/