Using Labview dll in MATLAB

4 visualizaciones (últimos 30 días)
Arpad Lenart
Arpad Lenart el 15 de En. de 2017
Comentada: Philip Borghesani el 16 de En. de 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 comentario
Philip Borghesani
Philip Borghesani el 16 de En. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Call C from MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by