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?
回答(1 个)
R
2023-12-28
Hi,
In order to use "ividevlist", there are three required dependecies:
- A supported vendor VISA library.
- 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
- 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!
0 个评论
另请参阅
类别
在 Help Center 和 File 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!