Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的印象是,当将 USB、串行或 GPIB 设备插入计算机时,计算机和设备会进行某种握手,并为设备分配一个地址。似乎我应该能够设置一个事件来触发它,并在插入设备时执行一些初始化操作。我正在使用 pyvisa 与设备通信,但我无法找到任何关于他们的文档事件。如何设置这样的活动?
我知道我可以用它list_resources()来检查每秒可用的设备或其他东西,但这似乎很老套。列出资源实际上是查询资源,还是只列出它已经知道的资源?
list_resources()