MATALB VISA Object Driver Error

조회 수: 18 (최근 30일)
Kazi Tahsin Mahmood
Kazi Tahsin Mahmood 2022년 6월 20일
댓글: Kazi Tahsin Mahmood 2022년 6월 23일
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 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