How to connect to an USB Test and Measurement (IVI) device in MATLAB

69 visualizaciones (últimos 30 días)
Xiaoxiao
Xiaoxiao el 19 de Dic. de 2023
Respondida: R el 28 de Dic. de 2023
I downloaded the Instrument Control Toolbox™ Support Package for IVI and VXIplug&play Drivers and I typed 'ividevlist' in command window to find my device (SR860) as what the help file in MATLAB says, but I got the error message 'Unable to get VISA installation information from the shared library because no preferred VISA was found. Open the vendor's control software to set and enable the preferred VISA."
However, I can see the detail of this device in VISA Instrument Control which means this device was definitely connected to this computer.
How can I connect to this device in MATLAB so that I can send commands to control it?
  3 comentarios
Xiaoxiao
Xiaoxiao el 19 de Dic. de 2023
It's MATLAB R2023a. I tried visadevlist command, but I got the same error message.
Xiaoxiao
Xiaoxiao el 19 de Dic. de 2023
I also tried the command below, but got the same error message.
visausb = visadev("USB0::0xB506::0x2000::005146::INSTR")

Iniciar sesión para comentar.

Respuestas (1)

R
R el 28 de Dic. de 2023
Hi,
In order to use "ividevlist", there are three required dependecies:
  1. A supported vendor VISA library.
  2. Instrument Control Toolbox Support Package for IVI and VXIplug&play Drivers: https://www.mathworks.com/help/instrument/install-instrument-control-toolbox-support-package-for-ivi-and-vxiplugplay-drivers.html
  3. IVI Compliance Package: https://www.mathworks.com/products/instrument/supported/ivi.html
From your question, I understand that you've downloaded the "Instrument Control Toolbox Support Package for IVI and VXIplug&play Drivers" support package. Make sure that all of the above dependencies are fullfilled.
If the issue still persists, a potential reason could be that the settings for the VISA are not set up correctly. Check the VISA Conflict Manager settings in your vendor's software and make sure that at least one VISA implementation is enabled and that one is set as preferred.
Refer to the detailed explanation provided in the following MATLAB Answer:
Hope this helps!

Categorías

Más información sobre Instrument Control Toolbox Supported Hardware en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by