MATALB VISA Object Driver Error

19 ビュー (過去 30 日間)
Kazi Tahsin Mahmood
Kazi Tahsin Mahmood 2022 年 6 月 20 日
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
Kazi Tahsin Mahmood 2022 年 6 月 23 日
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 Center および File ExchangeInstrument 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