Repository navigation
Setup a new node
This is a quick guide to setting up a new Labrad node.
This assumes that you already have a Labrad manager running (see detailed instructions for Windows or Ubuntu).
-
Make sure you're running Python 2 (at least for our current version of servers).
-
Install Labrad:
pip install pylabrad -
Set environment variables:
- LABRADHOST: This should be the IP address of the computer running the Manager.
- LABRADNODE: The name of your new node.
- LABRADPASSWORD: The Labrad password (which was set when starting up the Manager).
- LABRAD_TLS=off
On Windows, this can be done by searching "Edit system environment variables" and using the dialog that pops up. On Ubuntu, set the environment variables in
/etc/environment(e.g.,LABRADNODE=mynode), then log out and in to reload the environment variables.
-
Run
python -m labrad.node. -
You can check that the node is running properly using
ipython. Run the following lines:
import labrad
cxn = labrad.connect()
cxn.servers
This should print out a list of running Labrad servers, including the name of 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