-
-
Notifications
You must be signed in to change notification settings - Fork 134
Description
Hi there,
I'm trying to use pyvisa-py instead of NI-VISA for my python application to make it more portable, but can't detect my Tektronix oscilloscope when using pyvisa-py, while using NI-VISA works fine.
For example, if I run this code:
import pyvisa
import logging
logging.basicConfig(level=logging.DEBUG)
rm = pyvisa.ResourceManager('@py')
print(rm.list_resources())
I get this output:
DEBUG:pyvisa:SerialSession was correctly imported.
DEBUG:pyvisa:USBSession and USBRawSession were correctly imported.
DEBUG:pyvisa:TCPIPSession was correctly imported.
DEBUG:pyvisa:GPIBSession was not imported No module named 'gpib'.
DEBUG:pyvisa:Created library wrapper for py
DEBUG:pyvisa:Created ResourceManager with session 5708838
WARNING:pyvisa:Found a device whose serial number cannot be read. The partial VISA resource name is: USB0::1689::931::???::0::INSTR
WARNING:pyvisa:Found a device whose serial number cannot be read. The partial VISA resource name is: USB0::3034::33107::???::0::RAW
WARNING:zeroconf:unregister_all_services skipped as it does blocking i/o; use AsyncZeroconf with asyncio
('ASRL4::INSTR', 'ASRL3::INSTR')
The bold line is the interesting one I think.
I know from using NI-VISA that my scope's address is 'USB0::0x0699::0x03A3::C031550::INSTR', which is based on:
- vendor ID: 0x699 (1689)
- model ID: 0x3a3 (931)
- serial number: C031550
Instrument details
- Model: Tektronix DPO2024B
- Communication: USB
Output of pyvisa-info
Machine Details:
Platform ID: Windows-10-10.0.19045-SP0
Processor: Intel64 Family 6 Model 154 Stepping 4, GenuineIntel
Python:
Implementation: CPython
Executable: C:\Users......venv\Scripts\python.exe
Version: 3.10.11
Compiler: MSC v.1929 64 bit (AMD64)
Architecture: AMD64
Build: Apr 5 2023 00:38:17 (#tags/v3.10.11:7d4cc5a)
Unicode: UCS4
PyVISA Version: 1.14.1
Backends:
ivi:
Version: 1.14.1 (bundled with PyVISA)
#1: C:\WINDOWS\system32\visa32.dll:
found by: auto
architecture:
('x86', 64)
Vendor: National Instruments
Impl. Version: 26214400
Spec. Version: 7340544
#2: C:\WINDOWS\system32\visa64.dll:
found by: auto
architecture:
('x86', 64)
Vendor: National Instruments
Impl. Version: 26214400
Spec. Version: 7340544
py:
Version: 0.7.2
ASRL INSTR: Available via PySerial (N/A)
USB INSTR: Available via PyUSB (1.3.1). Backend: libusb1
USB RAW: Available via PyUSB (1.3.1). Backend: libusb1
TCPIP INSTR: Available
Resource discovery:
- VXI-11: ok
- hislip: ok
TCPIP SOCKET: Available
VICP INSTR:
Please install PyVICP to use this resource type.
GPIB INSTR:
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 functionalities.
No module named 'gpib'
GPIB INTFC:
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 functionalities.
No module named 'gpib'