pyvisaを使用して測定器(GRAPHTEC データロガー midi LOGGER GL840)とUSB通信を行いたいです。(環境:Windows10)
専用のソフト(GL-connection)では、接続が確認されているのですが、python上では、下記のように書いても何も表示されません。解決方法ご教示いただけないでしょうか。
python
1import pyvisa 2rm = pyvisa.ResourceManager() 3print(rm.list_resources())
〇自分で確認した点
pyvisa-infoを確認したところ下記の結果(A)を得られたため、PyUSBをインストールしましたが、Bが得られている状況です。
A
1PyVISA Version: 1.11.3 2Backends: 3 ivi: 4 Version: 1.11.3 (bundled with PyVISA) 5 ♯1: C:\Windows\system32\visa32.dll: 6 found by: auto 7 bitness: 64 8 Vendor: National Instruments 9 Impl. Version: National Instruments 10 Spec. Version: National Instruments 11 ♯2: C:\Windows\system32\visa64.dll: 12 found by: auto 13 bitness: 64 14 Vendor: National Instruments 15 Impl. Version: National Instruments 16 Spec. Version: National Instruments 17 py: 18 Version: 0.5.2 19 ASRL INSTR: 20 Please install PySerial (>=3.0) to use this resource type. 21 No module named 'serial.tools' 22 USB INSTR: 23 Please install PyUSB to use this resource type. 24 No module named 'usb' 25 USB RAW: 26 Please install PyUSB to use this resource type. 27 No module named 'usb' 28 TCPIP INSTR: Available 29 TCPIP SOCKET: Available 30 GPIB INSTR: 31 Please install linux-gpib (Linux) or gpib-ctypes (Windows, Linux) to use this resource type. Note that installing gpib-ctypes will give you access to a broader range of funcionality. 32 No module named 'gpib'
B
1 USB INSTR: 2 PyUSB does not seem to be properly installed. 3 Please refer to PyUSB documentation and 4 install a suitable backend like 5 libusb 0.1, libusb 1.0, libusbx, 6 libusb-win32 or OpenUSB. 7 No backend available 8 USB RAW: 9 PyUSB does not seem to be properly installed. 10 Please refer to PyUSB documentation and 11 install a suitable backend like 12 libusb 0.1, libusb 1.0, libusbx, 13 libusb-win32 or OpenUSB.
あなたの回答
tips
プレビュー