Skip to content

Setup Manager and First Node: Windows 10

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

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.

  1. Make sure you're using Python 2!

  2. Install pylabrad and anything other python packages you need: pip install pylabrad

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

  4. 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
  1. Run the Labrad manager (wherever you extracted the scalabrad distribution, plus \bin\labrad.bat).

  2. Now, we should be able to check that Labrad is at least running correctly. Run ipython and 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!

  1. 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 the LABRADNODE environment variable (for example, if you set LABRADNODE=test, you should see a new server node_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).

  1. Adding a new path to the Registry.

Table of contents

Intro

Getting started

Clone this wiki locally