Repository navigation
Setup Manager and First Node: Windows 10
This is a quick guide to setting up the Labrad manager and your first node on Windows.
Currently, the Labrad manager is setup and running on the main control computer ("bialkali"). In the unfortunate event that this computer dies, these instructions should be sufficient for getting Labrad running again, using a Windows machine as the main control computer. These instructions can also be used to setup an independent Labrad testbed for debugging new servers, etc.
-
Make sure you're using Python 2!
-
Install pylabrad and anything other python packages you need:
pip install pylabrad -
Install the Labrad manager. To do this, download the latest version of the binary distribution here and extract somewhere (e.g.,
C:\Users\username\Desktop\labrad). -
Next, we need to configure a few environment variables. To do this, find "Edit system environment variables". Set the following environment variables:
LABRADHOST=localhost
LABRADPASSWORD=your_labrad_password
LABRADNODE=name_of_your_node
LABRAD_TLS=off
-
Run the Labrad manager (wherever you extracted the scalabrad distribution, plus
\bin\labrad.bat). -
Now, we should be able to check that Labrad is at least running correctly. Run
ipythonand then try the following:
import labrad
cxn = labrad.connect()
cxn.servers
This should print a list of running servers (e.g., auth, manager, registry). If there are no errors, then you are good to go!
- Start your node. This is easy! Just do
python -m labrad.node. To check if it worked, follow the directions in (6) again. You should see a new server appear in the list, with the name of theLABRADNODEenvironment variable (for example, if you setLABRADNODE=test, you should see a new servernode_test). You can now start servers on your new node.
Finally, we can optionally add the path to the labrad_tools folder to the Registry, so Labrad can automatically detect the available servers. This also allows us to start and stop several servers at once using labrad_tools/nodecontrol (as opposed to starting the python script for each server manually).
- What does Labrad do?
- What do our Labrad servers do?
- Setting up the manager and first node (Windows, Ubuntu)
- Setting up a new node
- Adding paths to the Registry