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

2 ビュー (過去 30 日間)
yonatan gerufi
yonatan gerufi 2014 年 1 月 19 日
編集済み: yonatan gerufi 2014 年 5 月 23 日
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 Center および File ExchangeInstrument 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