MATALB VISA Object Driver Error
17 views (last 30 days)
Show older comments
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 Comments
Scott
on 22 Jun 2022
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.
Answers (0)
See Also
Categories
Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!