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

69 views (last 30 days)
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 Comments
Xiaoxiao
Xiaoxiao on 19 Dec 2023
It's MATLAB R2023a. I tried visadevlist command, but I got the same error message.
Xiaoxiao
Xiaoxiao on 19 Dec 2023
I also tried the command below, but got the same error message.
visausb = visadev("USB0::0xB506::0x2000::005146::INSTR")

Sign in to comment.

Answers (1)

R
R on 28 Dec 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!

Categories

Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!