LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling DLL from LabVIEW

I have a DLL given to me along with its .h file generated in MS Visual C++.  It contains 2 functions plus a lot of declarations.  The first function has no return type and simple data type inputs.  The second has a complex return type (struct) and string inputs.  I assume I have to build a wrapper DLL [for simplicity sake include both functions] and call it manually with a Call Library Function Node.  But what is the best way to deal with the struct return type?
0 Kudos
Message 1 of 2
(2,509 Views)

The best way I have found is to change the struct into a typedef.  Note that this isn't in the actual code, just the .h file that LabVIEW reads, so you may want to make an extra copy of the .h file.  And if you want to make your life even easier, use the Tools-->Import DLL function.

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




Message 2 of 2
(2,494 Views)