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

from qcodes.instrument_drivers.Minicircuits.USB_SPDT import USB_SPDT

change the serial number 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

The driver_path should specify the url of the dll for controlling the instrument. You can find it here:

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

dev = USB_SPDT('test',
               driver_path= r'C:\Users\a-dovoge\Qcodes\qcodes\instrument_drivers\Minicircuits\mcl_RF_Switch_Controller64')
Connected to: Mini-Circuits RC-4SPDT-A18 (serial:11703020018, firmware:20) in 0.19s

setting value to line one or two


reading value


setting all switches to line 2

[ ]: