Using Labview dll in MATLAB

4 次查看(过去 30 天)
Arpad Lenart
Arpad Lenart 2017-1-15
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 CenterFile Exchange 中查找有关 Call C from MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by