Qutech SPI机架的驱动程序
spirack的Python项目详细描述
SPI机架
SPI机架是Qutech开发的模块化电子仪器平台。它的发展是为了在纳米电子器件上进行测量,但不限于此。设计的首要任务是最小化连接到被测设备(样品)的电线上的噪声和干扰信号。要了解有关spi机架、用例和可用模块的更多信息,请浏览homepage。
这个存储库包含与硬件接口的python代码。所有的底层通信都由类处理,用户可以通过一个简单的接口来控制模块。下面是一个简单的例子,说明如何使用D5A(16通道18位DAC模块)来演示如何轻松进行:
# Import parts of the SPI Rack libraryfromspirackimportSPI_rack,D5a_module# Instantiate the controller modulespi=SPI_rack(port="COM4",baud=9600,timeout=1)# Unlock the controller for communication to happenspi.unlock()# Instantiate the D5a module using the controller module# and the correct module addressD5a=D5a_module(spi,module=2)# Set the output of DAC 1 to the desired voltageD5a.set_voltage(0,voltage=2.1)
更多的例子可以在examples或website的jupyter笔记本中找到。
安装
windows用户:在首次连接spi机架之前,请安装位于
在drivers.zip
中。在64位系统上运行SPI-Rack_x64
,在32位系统上运行
运行SPI-Rack_x86
。
对于基本安装,请使用:pip install spirack
。有关详细信息,请访问网站here。
q代码
仪器的qcode包装可从https://github.com/QCoDeS/Qcodes
许可证
见License。