对Keithley 2230电源使用SCPI命令时超时

2024-05-12 20:43:14 发布

您现在位置:Python中文网/ 问答频道 /正文

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}$

Tags: thermvisascpichannelissuequeryselect
1条回答
网友
1楼 · 发布于 2024-05-12 20:43:14

由于此查询而出现错误:

print inst.query("INSTrument:SELect?")

相反,我使用了print inst.write("INSTrument:SELect?")。在

我为将来的用户附加了代码段:-)

^{pr2}$

相关问题 更多 >