LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Library Function "Function prototype" incorrect

Solved!
Go to solution

Why does the same DLL file produce difference function prototypes?

 

I inserted the call library function node in my VI directly. However it has the incorrect function prototype. 

 

Cal_lib_proto1.PNG

 

This call library function node I copied from the “Goodness of Fit.vi”.  This has the correct function prototype.

 

Cal_lib_proto2.PNG

 

 

 

 

0 Kudos
Message 1 of 3
(2,514 Views)
Solution
Accepted by topic author kdugga

The DLL file DOES NOT produce prototypes at all. That is up to you! Look at the parameters tab for both of your examples, you will see that for the second one, someone has already filled in the prototype information. When making a new DLL call, you will need to know the correct prototype to apply, this is usually obtained from the .h (header) file.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 3
(2,502 Views)

You are interfacing unmanaged DLL, it has no information about its interface. It is up to the programmer to configure it using the documentation or the DLL files it was built from.

0 Kudos
Message 3 of 3
(2,480 Views)