#πŸ”’ PyVISA - GPIB Decies not found

5 messages Β· Page 1 of 1 (latest)

frank jay
#

I am trying to communicate with one of the PCI to GPIB card present in the PC to a device. But my Pyvisa is not able to find the GPIB card in the PC. it only see a different card . I do have all the necessary drivers installed. I can see my GPIB card from the NI Max software.

code: import pyvisa

def list_devices():
try:
# Explicitly specify the backend and VISA library path
rm = pyvisa.ResourceManager('C:\Windows\system32\visa32.dll')

    # List available resources
    resources = rm.list_resources()

    if not resources:
        print("No devices found.")
    else:
        print("Available devices:")
        for idx, resource in enumerate(resources, start=1):
            print(f"{idx}. {resource}")

except pyvisa.errors.VisaIOError as e:
    print(f"An error occurred: {e}")

if name == "main":
list_devices()

output:

Available devices:

  1. ASRL3::INSTR

ANy help is highly appriciated.

arctic scrollBOT
#

@frank jay

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

frank jay
#

pyvisa info:

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: 25165824
Spec. Version: 7340544
#2: C:\Windows\system32\visa64.dll:
found by: auto
architecture:
('x86', 64)
Vendor: National Instruments
Impl. Version: 25165824
Spec. Version: 7340544
py:
Version: 0.7.2
TCPIP INSTR: Available
Resource discovery:
- VXI-11: ok
- hislip: ok
TCPIP SOCKET: Available
ASRL INSTR:
Please install PySerial (>=3.0) to use this resource type.
No module named 'serial'
USB INSTR:
Please install PyUSB to use this resource type.
No module named 'usb'
USB RAW:
Please install PyUSB to use this resource type.
No module named 'usb'
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'

arctic scrollBOT
#

@frank jay

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.