Tmtool don't recognize the tcp/ip on a computer, but does it on another one
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I write here today because I try to import a software from a laptop to a desktop computer. The laptop works on Windows 7 Pro 64bits and the desktop one on Windows 10 32bits. I developed a network using a router and ethernet cables. I also installed a software from my instruments (Tektronix function generators) which permits to watch what connections are available. MATLAB is the 2007b version.
On the laptop, using the Tektronix software, or trying to ping on a command window, or scanning for instrument with the tmtool, each time I can see my 2 connections and I can communicate with the instruments. BUT, with the desktop computer, all work except MATLAB : the tmtool don't recognize any connection, and when I try to create a visa or tcpip object, I have an error message which tell me I probably didn't installed properly a driver. But, when I look for the matlab driver with the instrhwinfo('matlab') function, I have correctly the drivers I also use on the laptop.
I don't find why the tmtool is not working. I look the firewall of windows and the antivirus but no problems here. I don't know where to search now.
I thank you in advance for each piece of advise you could give me.
PS: can we ping from MATLAB directly?
댓글 수: 0
답변 (2개)
Vinod
2016년 10월 14일
Since TMTOOL works on your laptop but not on your desktop, I suspect your desktop configuration has an issue. Have you added the instruments to your VISA software's list of known devices? What version/versions of VISA do you have installed on your machine?
If you post the output of executing 'instrsupport' in MATLAB on your laptop and your desktop, I may be able to provide some guidance.
Also, I would recommend upgrading to a newer version of MATLAB. R2007a is over 9 years old. It is 18 releases behind the current release (R2016b as of now).
댓글 수: 3
Vinod
2016년 10월 17일
Execute 'ver' in MATLAB and paste your answer. That will provide some information. Then also execute 'instrhwinfo visa' followed by 'insthwinfo visa tek' and paste that information as well.
Vinod
2016년 10월 19일
It appears that MATLAB is unable to find your VISA implementation. This could be because you have 64-bit MATLAB and 32-bit VISA. To find whether you have 32-bit MATLAB or 64-bit MATLAB, execute 'mexext' at the command prompt. If you get 'mexw64', then you have 64-bit MATLAB and you need to install 64-bit Tek VISA. If you have 32-bit MATLAB, you will see 'mexw32' in which case you need to install 32-bit Tek VISA.
You are likely better off installing Keysight or NI VISA and moving on to your measurement tasks.
댓글 수: 2
Vinod
2016년 10월 23일
편집: Vinod
2016년 10월 23일
Mathieu,
I would recommend you download Keysight VISA on the computer that cannot find the instrument. That should allow you to create a VISA object to connect to your Tektronix instrument.
Once you have installed Keysight VISA, you can scan for new instruments on your network and it should show you the resource string needed to connect to the instrument.
In your MATLAB code you likely will need to change the code from something like
visaObj = visa('Tek','instrument resource string')
to
visaObj = visa('agilent','instrument resource string')
Hope this helps, -Vinod
참고 항목
카테고리
Help Center 및 File Exchange에서 Instrument Connection and Communication에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!