Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VI_ERROR_RSRC_BUSY (-1073807246): The resource is valid, but VISA cannot currently access it

Hello everybody,

 

I try to remote control an measurement instrument Keithley 2110 5 1/2 Digit Multimeter.

This instrument can be managed with VISA and it used USBTMC protocol.

So I developed with Python language on OpenSUSE 42.2 LEAP and used VISA to detect Keithley instrument :

import visa
rm = visa.ResourceManager()

But I have this error : 

"pyvisa.errors.VisaIOError: VI_ERROR_RSRC_BUSY (-1073807246): The resource is valid, but VISA cannot currently access it."

 

When I try to open NI Visa Configuration to detect but Keithley instrument is not detected.

 

Before to run Python script, I was :

  • updated OpenSUSE packaging
  • installed LabVIEW RTE 2018 for Linux
  • installed NI Linux Device Drivers 2018 for OpenSUSE42.2 & ni-visa package 2018
  • installed pyvisa 1.9.1 for Python
  • installed NI VISA 18.2 (iso file)

Anybody has an other idea how to solve this problem ?

 

Regards,

Indian Horse

0 Kudos
Message 1 of 3
(5,080 Views)

Hello Indian Horse,

 

After doing some research, I found that this error could happen if the firmware of your device is not updated. Do you know if you are using last version of it?

 

The error message you get is clear: the port looks like it is already used.
Following links focus on the same error and can help you solving the issue:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8CLSA0&l=fr-FR

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6B1SAK&l=fr-FR

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/always-VI-ERROR-RSRC-BUSY-on-reads-can-t-rec...

https://forums.ni.com/t5/LabWindows-CVI/viFindRsrc-opens-amp-closes-my-virtual-COM-port-but-viOpen/t...

 

Don't hesitate to document how you solved your problem when you did!

Have a very nice day.

 

Kind regards,

Armando

0 Kudos
Message 2 of 3
(5,047 Views)

Hello Armando,

 

Thank for your help.

When I try to manage instrument on Windows, I can control it without problem.

 

But when I try to do it on Linux distribution (OpenSUSE42.2), there is a problem to access resource by VISA.

When I try to control instrument by usb (with usbtmc protocol, no serial port) , I only open Python environment nothing else. So the only thing who used usbtmc is Python at first glance.

 

To access instrument by VISA I try command line "make cloneconfig" but there is no rules.

(procedure from https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LklSAE&l=fr-FR).

 

Perhaps, I need to authorize to use VISA and usbtmc on OpenSUSE.

But I don't know how.

 

Regards,

Indian Horse

0 Kudos
Message 3 of 3
(5,028 Views)