Problems with VISA connectivity (visadev)

Using the function
visadev('TCPIP0::127.0.0.1::inst0::INSTR')
Gives the error
Unable to get VISA installation information from shared library.
And
visadevlist
returns
Unable to find any VISA resources during the specified timeout period. Open the vendor's control software to search for available
VISA resources.

4 comentarios

Nicholas Estes
Nicholas Estes el 2 de Ag. de 2021
I am getting the same error. I am a bit peeved that the MATLAB editor explicitly warns against using 'visa' instead of 'visadev', when the refactoring is empirically not as trivial as the documentation suggests.
My scripts using visa have been hanging on fclose(obj), so I had hoped changing to visadev would fix things, but it looks like they have gotten worse.
Nicholas Estes
Nicholas Estes el 2 de Ag. de 2021
I should clarify that I am using Keysight instruments, with the latest version of IO Libraries. Keysight Connection Expert can "see" the instruments, and I am able to communicate with them using the "visa" function and fprintf, query, etc.
Nicolas Garcia
Nicolas Garcia el 3 de Ag. de 2021
I am also getting this error when connecting to Keysight instruments. It is particularly frustrating because there appears to be no change in the hardware or connectivity setup parameters. I didn't run into this issue using the original 'visa'
Zahra Vaziri
Zahra Vaziri el 11 de Oct. de 2022
I'm having the same problem! @Lukas Grundmann answer did not help...
Anyone have any more ideas?

Iniciar sesión para comentar.

 Respuesta aceptada

Lukas Grundmann
Lukas Grundmann el 2 de Nov. de 2021

8 votos

Hello,
I had the exact same problem and fixed it as follows:
  1. Open your Keysight Connection Expert
  2. In the top right hand corner, click the little gear symbol to open the settings dialogue
  3. Go to "Tools"
  4. Got to "VISA Conflict Manager"
  5. In the tab "General VISA Settings", no implmentations were enabled when I first opened it. I have multiple implementations installed and now enabled "Keysight VISA" and "Keysight VISA.NET". Also, I selected them as the "Preferred Implementation".
  6. Press "Apply" and "OK"
After this, the
visadev
command worked again for me.

3 comentarios

Akshayaa Pandiyan
Akshayaa Pandiyan el 25 de Jul. de 2022
I tried this and it was still the same error. Increasing the Timeout didnt help either. Any idea why this is?
Roel
Roel el 19 de Abr. de 2023
worked for me, thanks!
carl oros
carl oros el 21 de Nov. de 2023
I had same issue. Worked perfectly! Thank you!!

Iniciar sesión para comentar.

Productos

Versión

R2021a

Preguntada:

el 5 de Jul. de 2021

Comentada:

el 21 de Nov. de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by