This commit is contained in:
WGY 2026-08-31 17:04:17 +08:00
parent b922de030e
commit b14ce6bddf
3 changed files with 7 additions and 0 deletions

7
test/test_pyvisa.py Normal file
View File

@ -0,0 +1,7 @@
import pyvisa
print("PyVISA 版本:", pyvisa.__version__)
# 尝试获取资源列表
rm = pyvisa.ResourceManager('@py') # 如果用方案二装的
# rm = pyvisa.ResourceManager() # 如果用方案一装的
print("检测到的资源:", rm.list_resources())