Python drivers for the QuTech SPI-rack
Clone or download
mtiggelman D4 module update
Updated D4 module to standard, should be usable now. Also revamped D4
example notebook.
Latest commit 33ca25b Oct 30, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples D4 module update Oct 30, 2018
spirack D4 module update Oct 30, 2018
.gitignore Added SPI speed parameter and lock/unlock functionality Jun 1, 2017
LICENSE Added PyPI files and M2j beta May 2, 2017 Update readme Sep 19, 2018 Added SPI speed parameter and lock/unlock functionality Jun 1, 2017
setup.cfg Added PyPI files and M2j beta May 2, 2017 Add U2_module Oct 15, 2018

SPI Rack

The SPI Rack is a modular electronic instrumentation platform developed by QuTech. It has been developed to perform measurements on nanoelectronic devices, but is not limited to this. Design priority was the minimization of noise and interference signals on the wires connected to the measured device (sample). To learn more about the SPI Rack, use cases and the available modules, browse the homepage.

This repository contains the Python code to interface with the hardware. All the low level communication is handled by the classes and the user is presented with an easy interface to control the modules. Here is a simple example on how to use the D5a (16 channel 18-bit DAC module) to show how easy it is to get going:

# Import parts of the SPI Rack library
from spirack import SPI_rack, D5a_module

# Instantiate the controller module
spi = SPI_rack(port="COM4", baud=9600, timeout=1)
# Unlock the controller for communication to happen

# Instantiate the D5a module using the controller module
# and the correct module address
D5a = D5a_module(spi, module=2)
# Set the output of DAC 1 to the desired voltage
D5a.set_voltage(0, voltage=2.1)

More examples can be found as Jupyter notebooks in examples or at the website.


Windows users: before connecting the SPI-rack for the first time, install the drivers located in On 64-bit systems run SPI-Rack_x64, on 32-bit systems run SPI-Rack_x86.

For a basic install use: pip install spirack. For more details see the website here.


A Qcodes wrapper for the instrument is available from


See License.