Tmtool don't recognize the tcp/ip on a computer, but does it on another one
4 次查看(过去 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!