Using Labview dll in MATLAB

4 ビュー (過去 30 日間)
Arpad Lenart
Arpad Lenart 2017 年 1 月 15 日
コメント済み: Philip Borghesani 2017 年 1 月 16 日
Hi,
I would like to open a LabVIEW generated dll file in MATLAB. I have a sub VI in LabVIEW to open a file, giving a 2 dimensional double array. Using LabVIEW application builder I created a dll file. I can call this dll file from MATLAB (using calllib). The calllib function only works if the result is a single number. However, this method doesn`t work for a 2 dimensional array. When I try it with a 2 dimensional array I get the error message: "No method with matching signature."
I am interested if anyone has tried this method before?
  1 件のコメント
Philip Borghesani
Philip Borghesani 2017 年 1 月 16 日
You are going to need to give us a bit more information before we can help. At least some of the information below is needed.
  • What is the contents of the header file you are using for the function you wish to call
  • What does libfunctions libname -full show for the function you wish to call
  • What matlab code did you try to call the function?
  • Were there any warnings when loading the library?
  • Some information on expected input and output arguments to the function when arguments are pointers.
Advanced debugging for loadlibrary warnings and when libfunctions does not show the expected types:
  • Generate a prototype file for the header and post the relevant lines from it for the function you wish to call.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall C from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by