Connecting to D5a by Qutech in Python
Instrument Card
The D5a module contains 16 18-bit DACs (Digital to Analog Converters), initially created for setting gate-voltages on samples. In contrast to most commercial units, there are no processor or clock circuits present in this module. This to prevent interference. The only time any digital signals are present is when the DAC values are being changed. Afterwards the module goes back to being static. The DAC values are set via the controller module. As this module is generally used for gate voltage control, the use of an isolated controller module (C1b/C2 combination) is recommended.
Device Specification: here
Manufacturer card: QUTECH
At QuTech, we work on a radically new technology with world-changing potential. Our mission: to develop scalable prototypes of a quantum computer and an inherently safe quantum internet, based on the fundamental laws of quantum mechanics.
- Headquarters: CJ Delft, Netherlands
- Yearly Revenue (millions, USD): 41.3
- Vendor Website: here
Demo: Measure a solar panel IV curve with a Keithley 2400
Connect to the D5a in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a D5a Power Supply using Qcodes Community, you can use the following Python script:
from qcodes.instrument.base import Instrumentfrom qcodes.utils.validators import Enum, Numbersfrom qcodes_contrib_drivers.drivers.SPI_rack import SPI_rack
try: from spirack import D5a_moduleexcept ImportError: raise ImportError(('The D5a_module class could not be found. ' 'Try installing it using pip install spirack'))
from functools import partial
class D5a(Instrument): # ... (the rest of the code provided in the question)
# Create an instance of the SPI_rack classspi_rack = SPI_rack("SPI_rack", "COM1") # Replace "COM1" with the appropriate port name
# Create an instance of the D5a classd5a = D5a("D5a", spi_rack, module=1)
# Connect to the D5a Power Supplyd5a.connect()
# Now you can use the D5a Power Supply# For example, to set DAC1 voltage to 2.5V:d5a.dac1(2.5)
# To get the minimum step size of DAC2:step_size = d5a.stepsize2()
# To change the output span of DAC3 to '4v bi':d5a.span3('4v bi')
# To reset all DACs to zero voltage:d5a.set_dacs_zero()
# Disconnect from the D5a Power Supplyd5a.disconnect()
Note: Replace "COM1"
with the appropriate port name for your SPI rack connection.