Using Labview dll in MATLAB

4 Ansichten (letzte 30 Tage)
Arpad Lenart
Arpad Lenart am 15 Jan. 2017
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 Kommentar
Philip Borghesani
Philip Borghesani am 16 Jan. 2017
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Call C from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by