Instrument control hangs on tekvisa search

2 views (last 30 days)
Jonas
Jonas on 11 Oct 2016
Commented: Vinod on 18 Apr 2017
After moving my matlab license to a new computer, I'm unable to connect to instruments with tekvisa and instrument control. The most obvious error is that instrument control toolbox hangs when I scan for instruments through visa. I have also seen this exception: Exception: PRIVATEFINDHWINFO returned unexpected results or errored out.
Communicating directly with the instrument with a non-IVI driver works. I can also use the tekvisa "OpenChoice" tool to communicate. This is all tested with a Tektronix MSO4104 oscilloscope. I have installed the latest tekvisa and IVI shared components. I use Matlab R2015a with Windows 10.
  2 Comments
Feng
Feng on 12 Apr 2017
I encountered the exact same problem with my system. Everything works fine two days ago and nothing changed. Just wondering if you got the problem resolved and how? Thanks, Feng
Vinod
Vinod on 18 Apr 2017
TekVISA is known to have some bugs with certain configurations. Perhaps you can try my solution below - uninstall TekVISA and install either the Agilent or the NI Hardware Support Package for VISA.

Sign in to comment.

Answers (1)

Vinod
Vinod on 11 Oct 2016
I would generally recommend Keysight (Agilent) VISA or National Instruments VISA. In my experience these are far more mature implementations that implement the most current VISA specification. If you are on one of the new versions of MATLAB, you can start by installing this using the Hardware Support Package . You may need to uninstall Tek VISA to get things working correctly.
  1 Comment
Jonas
Jonas on 13 Oct 2016
Ok, thank you. That is a workaround that I will keep as the last option. Mathworks still claims that they are compatible with tekVISA so it should work. And it did work before i switched computer.

Sign in to comment.

Categories

Find more on Instrument Control Toolbox 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!