This commit is contained in:
parent
b922de030e
commit
b14ce6bddf
Binary file not shown.
|
|
@ -0,0 +1,7 @@
|
||||||
|
import pyvisa
|
||||||
|
print("PyVISA 版本:", pyvisa.__version__)
|
||||||
|
|
||||||
|
# 尝试获取资源列表
|
||||||
|
rm = pyvisa.ResourceManager('@py') # 如果用方案二装的
|
||||||
|
# rm = pyvisa.ResourceManager() # 如果用方案一装的
|
||||||
|
print("检测到的资源:", rm.list_resources())
|
||||||
Loading…
Reference in New Issue