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

조회 수: 2 (최근 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
Walter Roberson
Walter Roberson 2014년 1월 19일
A license for a toolbox also includes a license to compile, for all toolboxes that support compiling.
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에서 Instrument Control Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by