This page was generated from docs/examples/driver_examples/Qcodes example with Minicircuits Switch boxes (USB-XSPDT).ipynb. Interactive online version: Binder badge.

QCoDeS Example with Minicircuits Switch Boxes Controlled via USBΒΆ

[2]:
from qcodes.instrument_drivers.Minicircuits import MiniCircuitsUsbSPDT

To use this driver you should install qcodes with the minicircuits_usb_spdt extra i.e. pip install qcodes[minicircuits_usb_spdt] You also need to install the driver dll from the vendors webpage. You can find it here:

https://www.minicircuits.com/softwaredownload/rfswitchcontroller.html

Download .NET dll and save somewhere. Unblock it (right click properties) and specify the path.

The downloaded ZIP file contains two DLLs. We recommend using mcl_RF_Switch_Controller_NET45.dll which supports the most recent .net versions.

The driver_path argument should specify the url of the dll for controlling the instrument. Change the serial_number argument to the serial number on the sticker on the back of the device, or leave it blank if there is only one switch box connected

[ ]:
dev = MiniCircuitsUsbSPDT(
    "test",
    serial_number="11703020018",
    driver_path=r"C:\Users\a-dovoge\Qcodes\qcodes\instrument_drivers\Minicircuits\mcl_RF_Switch_Controller_NET45",
)
Connected to: Mini-Circuits RC-4SPDT-A18 (serial:11703020018, firmware:20) in 0.19s

setting value to line one or two

[4]:
dev.a(1)

reading value

[5]:
dev.b()
[5]:
2

setting all switches to line 2

[6]:
dev.all(2)
[ ]: