MATALB VISA Object Driver Error

19 次查看(过去 30 天)
Hello,
I am using 2 Tektronix device. Model Number: MDO3024 and 4055B. I am using MATLAB VISA script to run the Oscilloscope and Function Gnerator and OpenChoice Instrument Manager. While running the VISA object, Matlab creates an error stating "Unable to create VISA object. The required drivers may not be installed properly." The code I am using,
%% ------Create Instrument Objects-------------------------------------- %%
%%% Provide resource name for instruments
visaAddress_OS = 'USB::0x0699::0x0408::B022350::INSTR';
visaAddress_FG = 'USB::0xF4EC::0xEE38::516L21106::INSTR';
%%% Create a VISA objects for oscilloscope and function generator
myOscope = visa('tek',visaAddress_OS);
myFgen = serialport('tek',visaAddress_FG);
I have uninstalled and installed the drivers and MATLAB several times. But nothing seems to work. Can anyone help me through that?
  2 个评论
Scott
Scott 2022-6-22
did you properly install the VISA drivers? I'm assuming you're using TEKVISA which I'm not familiar with, but I would try using the "Test and Measurement Tool" (run tmtool from matlab command line) and figure out if matlab sees the device on it's own. If not, I would guess your VISA drivers aren't properly installed. I personally have used National Instruments, Rohde & Schwarz, and Keysight VISA drivers with success.
The NI drivers are nice since they ship with NI IO Trace which allows you to spy on all commands to/from any VISA device.
Kazi Tahsin Mahmood
I manage to solve it. It looks like the older version of tekvisa driver does not support MATLAB 2022a. At first I was using TekVisa 4.1.1. Then I found version 4.2. Now it is working fine.

请先登录,再进行评论。

回答(0 个)

类别

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

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by