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

2 views (last 30 days)
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 Comment
yonatan gerufi
yonatan gerufi on 23 May 2014
Edited: yonatan gerufi on 23 May 2014
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!

Sign in to comment.

Answers (2)

Mihir Daptardar
Mihir Daptardar on 19 Jan 2014
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 Comments
Walter Roberson
Walter Roberson on 19 Jan 2014
A license for a toolbox also includes a license to compile, for all toolboxes that support compiling.
yonatan gerufi
yonatan gerufi on 21 Jan 2014
Edited: yonatan gerufi on 21 Jan 2014
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.

Sign in to comment.


Walter Roberson
Walter Roberson on 19 Jan 2014
Try Dependency Walker to see if any libraries are missing.
  1 Comment
yonatan gerufi
yonatan gerufi on 23 Jan 2014
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?

Sign in to comment.

Categories

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