LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like convert a c++ dll for use in labview--my device has no labview dll

Solved!
Go to solution
I have a piezoelectric control board (Piezomechanik gmbh) that I would like to use through LabView.  Currently, the company does not offer any support for Labview.  Windows sees the device (It came with a driver file), but the company only provides dll files for C++ and Visual Basic.  Can I convert these files to a format Labview can use?  How can I get Labview to communicate with the control board (and ultimately the piezoelectric device attached to it)?  Thanks!
0 Kudos
Message 1 of 5
(3,057 Views)
The application note at http://zone.ni.com/devzone/cda/tut/p/id/2818 should help you get started
0 Kudos
Message 2 of 5
(3,055 Views)
Solution
Accepted by topic author ChadEckert
This will only help you when you have the header file for the DLL, otherwise you will have to create the wrapper manually using the "Call library node" and the DLL api description or write an header file for the DLL yourself based on the api documentation and use the wizard.

Regards,

André
Regards,
André (CLA, CLED)
0 Kudos
Message 3 of 5
(3,051 Views)
Does the Import Shared Library work for both C and C++? (assuming you have the dll and the .h)
0 Kudos
Message 4 of 5
(2,638 Views)
The C++ DLL would need to have the functions adorned with extern "C", as noted in step 3 of this KB article: http://zone.ni.com/devzone/cda/tut/p/id/3056#toc2
0 Kudos
Message 5 of 5
(2,630 Views)