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:
- ASRL3::INSTR
ANy help is highly appriciated.