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

69 次查看(过去 30 天)
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 个评论
Xiaoxiao
Xiaoxiao 2023-12-19
It's MATLAB R2023a. I tried visadevlist command, but I got the same error message.
Xiaoxiao
Xiaoxiao 2023-12-19
I also tried the command below, but got the same error message.
visausb = visadev("USB0::0xB506::0x2000::005146::INSTR")

请先登录,再进行评论。

回答(1 个)

R
R 2023-12-28
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!

类别

Help CenterFile Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by