Blockquote
我使用的是Keithley 2230三通道直流电源,用于实验室自动化。我想选择特定的通道并相应地设置电压。我附上了程序以及错误。在
我做了以下研究,但没有成功。在
PyVISA SCPI commands and queries (issue with value update)
Python SCPI avoiding fixed delays (synchronization issue)
课程:
import visa
rm = visa.ResourceManager()
str = 'USB0::0x05E6::0x2230::9102008::INSTR'
inst = rm.open_resource(str)
print inst.query("*IDN?")
######### print the selected channel ##########
print inst.query("INSTrument:SELect?")
######### selected the perticular channel ##########
print inst.query("INSTrument:SELect 2")
我从keithley DD电源的官方链接得到命令:
http://assets.tequipment.net/assets/1/26/Documents/Keithley/2220_30_1/2220_30_1_doc_4.pdf
输出日志:
^{pr2}$
由于此查询而出现错误:
相反,我使用了
print inst.write("INSTrument:SELect?")
。在我为将来的用户附加了代码段:-)
^{pr2}$相关问题 更多 >
编程相关推荐