#!/usr/bin/env python # coding: utf-8 # # QCoDeS Example with Minicircuits Switch Boxes Controlled via USB # In[2]: from qcodes.instrument_drivers.Minicircuits import MiniCircuitsUsbSPDT # 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: # # 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. # In[ ]: dev = MiniCircuitsUsbSPDT( "test", serial_number="11703020018", driver_path=r"C:\Users\a-dovoge\Qcodes\qcodes\instrument_drivers\Minicircuits\mcl_RF_Switch_Controller_NET45", ) # setting value to line one or two # In[4]: dev.a(1) # reading value # In[5]: dev.b() # setting all switches to line 2 # In[6]: dev.all(2) # In[ ]: