Skip to content

Setup a new node

Kyle Matsuda edited this page Nov 24, 2020 · 4 revisions

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

  1. Make sure you're running Python 2 (at least for our current version of servers).

  2. Install Labrad: pip install pylabrad

  3. 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.
  1. Run python -m labrad.node.

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

  1. Adding a new path to the Registry.

Table of contents

Intro

Getting started

Clone this wiki locally