与keithley 2700万用表接口的python包
py2700的Python项目详细描述
非官方Keithley 2700系列DMM接口:PY2700
与Keithley 2700数字万用表接口的Python包。
简介
PY2700软件包的设计允许轻松访问发送到万用表的常见SCPI命令。从设置频道,到读取数据,甚至写入显示器,该软件包允许用户快速轻松地生成工作的、可读的python代码,以便从设备中收集数据,并最终避免被迫为keithley kickstart支付许可费。
示例程序
importpy2700asDMMimporttime# Connect to a Keithley 2701 over TCP/IPmy_multimeter=DMM.Multimeter('TCPIP::192.168.69.102::1394::SOCKET')# Set the default temperature unitsmy_multimeter.set_temperature_units('C')# Set the timeout in msmy_multimeter.set_timeout(5000)# Set Channels 101, 102, and 103 as K-type thermocouplesmy_multimeter.define_channels([101,102,103],DMM.MeasurementType.thermocouple('K'))# Setup for reading: # This needs to be completed after channel# definitions and before scanningmy_multimeter.setup_scan()# Scan the channels, given the timestamp you want # for the readingresult=my_multimeter.scan(time.time_ns()/(10**9))# Print out a CSV header for the resultprint(my_multimeter.make_csv_header())# Print out a CSV row for the resultprint(result.make_csv_row())# Safely disconnect from the multimetermy_multimeter.disconnect()
联系人
如果遇到错误,请提交问题,并将任何问题或请求发送到py2700@noahpaladino.com