compiled standalone app that controlling instrument (with visa) dosn't work on other PC's

1 次查看(过去 30 天)
Hi, i have Matlab R2013b with Test&measurement and compiler toolboxes.
My code activates an external instruments via visa, and the code works fine as i compiled my code, i got an standalone app that also works.
i've installed the app on another PC (i've also installed the same Matlab Compiler Runtime, and the drivers), connected the same instrument to the PC,but i didn't succeed to connect to it! after I've installed Matlab R2013b on my second PC the standalone app suddenly did work.
the app shows an error massage on the line: "obj1 = instrfind('Type', 'visa-usb', 'RsrcName', USB0::0x1313::0x80B0::P3000531::0::INSTR', 'Tag', ''); "
any idea what can i do? thank you.
  1 个评论
yonatan gerufi
yonatan gerufi 2014-5-23
编辑:yonatan gerufi 2014-5-23
the problem solved after talking to matlab engineers. it was a bug in 2013b and previous versions. it is written on bug reports on mathwork site, and installing patch found on mathworks site solved the problem.
thank you all for your help!

请先登录,再进行评论。

回答(2 个)

Mihir Daptardar
Mihir Daptardar 2014-1-19
There may be some specific toolboxes which you app must be using implicitly. When you install MATLAB R2013b on the second computer, you must have used the same licence that you have on your 1st machine and hence it may have stop working. I would recommend checking you code to see what all toolboxes you have used and then purchasing the licenses for those toolboxes so that you can run those on the other computer.
  2 个评论
yonatan gerufi
yonatan gerufi 2014-1-21
编辑:yonatan gerufi 2014-1-21
Thank you for your answers,
i have a legal licences for Matlab and for my Toolbox (matlab compiler & test and measurment toolbox).
I didn't understand your answer, i've made a stand alone application (executable file), using Matlab compiler. the App works on my main PC (where i compiled my code and have matlab) with matlab closed, as it should have.
when i'm trying to use it on another computer (with no matlab), my app opens, and everything looks OK, until i'm trying to connect (again - with my app) to an instrument (using test & measurment toolbox commands that where compiled to the app).
hopes it more understandable now.

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2014-1-19
Try Dependency Walker to see if any libraries are missing.
  1 个评论
yonatan gerufi
yonatan gerufi 2014-1-23
thank you,
i've used Dependency Walker, and got a dwi file (i can't attach it because the format is unsupported), but i don't understand it contents. how can i tell what missing libraries are important?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Troubleshooting in Instrument Control Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by